0

Is there any way how to add/get some custom hidden data to each row in DataTable ? Every row is clickable and after clicking it should execute function with id as parameter, but this id should not be displayed within my datatable.

So basically, I'm searching something like 'input type=hidden' but for datatable. Thanks.

4
  • What's wrong with hidden inputs? Is html5 data-* for your needs? Commented Mar 2, 2013 at 14:15
  • I think the problem is not what's in the Datatable but rather what you are displaying on the UI. Is this for a <GridView> or what? Commented Mar 2, 2013 at 14:16
  • you can hide columns and can access data for any row using the API. Need to be more specific about what you want. Also confirm plugin you are using Commented Mar 2, 2013 at 14:18
  • or if by DataTable you mean the datatables plugin for jquery, then look here: stackoverflow.com/questions/5654633/… Commented Mar 2, 2013 at 14:18

1 Answer 1

0

You can hide columns by this command:

fnSetColumnVis( 1, false );

as mentioned here: jquery datatables hide column

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.