hiding ColVis elements without reloading table

hiding ColVis elements without reloading table

jtuttlejtuttle Posts: 2Questions: 0Answers: 0
edited March 2013 in Plug-ins
Hi there. I have a page that makes heavy use of datatables and includes the ColVis plug-in. I've recently had the need to remove columns from the table without completely reloading the table. This works quite well as it's just a matter of calling fnSetColumnVis. However, I need these columns to be permanently hidden and the user can quite easily bring them back by toggling them in the Show/Hide list that the ColVis plug-in creates.

Is there currently a path in place for dynamically hiding/showing entries in the ColVis list? I did manage to get this working but it requires some modifications to the ColVis js and I'd rather avoid this if possible. Thanks!

Replies

  • jtuttlejtuttle Posts: 2Questions: 0Answers: 0
    I figured it out. You can modify aiExclude then call fnRebuild to achieve the desired effect. Thanks!
This discussion has been closed.