User selectable column (Not just css)

User selectable column (Not just css)

robertbrowerrobertbrower Posts: 158Questions: 1Answers: 0
edited October 2012 in General
I'd like to be able to select a column in my datatable. When the user clicks in any cell in any one of the selectable columns, the column should be appear selected. I should be able to get the contents of the TH of the column which I want to store extra info in, ie hidden input.

Any ideas?

Thank you.

Robert

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Currently there is no built in way in DataTables to do this. However, it can be done using API plug-ins. For example the fnGetColumnData plug-in will get the data for the column. I had thought there was one for nodes as well, but that same principle applies.

    Probably not what you want to hear, but v1.10 will have built in API calls for getting column nodes and data... :-)

    Allan
This discussion has been closed.