Additional (hidden) columns when bServerSide ?

Additional (hidden) columns when bServerSide ?

jazzyjayjazzyjay Posts: 4Questions: 0Answers: 0
edited June 2009 in General
Is it currently possible to have additional columns sent to the front end that can be used to generate some actions buttons - edit, delete etc ?

I would like to retain, say 10 columns, but get additional columns from the back end and process them into 10 using fnRowCallback.

Thanks
J

Replies

  • allanallan Posts: 61,451Questions: 1Answers: 10,055 Site admin
    Hi jazzyjay,

    Yes indeed you can post back hidden columns. Just use the bVisible option for the column you don't want to show and DataTables will not display it. Bare in mind that the number of columns that DataTables knows about (including hidden columns) should be the size of the array passed back. For example if you have 5 visible and 5 hidden columns, the array for each row passed back should be 10 elements long.

    Regards,
    Allan
This discussion has been closed.