Customize colVis to be a check box list instead of a dropdown?
Customize colVis to be a check box list instead of a dropdown?
I'm trying to create a comparison table. Essentially the user selects up to 5 objects to compare and they are brought to a comparison page. At the top of each column there should be a checkbox to display. There's no way to recover an object once it has been made invisible (spec by client, not my choice). Here's a screenshot of what it should look like:
http://ivorywargames.com/gallery/example.png
if you can help me or point me towards a discussion about this that has already happened, I'd really appreciate it.
Thank you,
Alex
http://ivorywargames.com/gallery/example.png
if you can help me or point me towards a discussion about this that has already happened, I'd really appreciate it.
Thank you,
Alex
This discussion has been closed.
Replies
I'd suggest just using the fnSetColumnVis API method directly, rather than going through the ColVis plug-in for this. You can see an example of the API method in action here: http://datatables.net/release-datatables/examples/api/show_hide.html
Allan
Thank you,
Alex
One more question on that which is: how do I get it not to re-draw the table? I've got it CSSed to have each column be a certain width and ideally, the removed columns would cause the others (not the first) to move to the left, but now it removes the table width and ruins the style.
Thanks for the help,
Alex
Allan
Allan