colvis: how to show multiple columns in Show/Hide button drop down when there are too many columns

colvis: how to show multiple columns in Show/Hide button drop down when there are too many columns

vtgoalvtgoal Posts: 5Questions: 0Answers: 0
edited February 2014 in Plug-ins
I have similar requirement as these 2 topics:
[1] http://datatables.net/forums/discussion/14186/colvis-new-feature-multiple-dropdown-columns-for-long-lists-of-table-columns#Item_1
[2] http://datatables.net/forums/discussion/19499/colvis-showhide-buton-drop-down-multiple-column

I can't find the modified ColVis.js in [1], could anyone show me an example how can I achieve that?
sorry, I failed to give an example on live.datatables.net.

Replies

  • allanallan Posts: 63,601Questions: 1Answers: 10,486 Site admin
    Did you try the suggestion in your [2] link? What happened? If it didn't work, please link to the page so we can take a look and see why not.

    Allan
  • vtgoalvtgoal Posts: 5Questions: 0Answers: 0
    I tried add the following code for ul.ColVis_collection in dataTables.colVis.css:

    [code]
    -moz-column-count: 4;
    -moz-column-gap: 200px;
    -webkit-column-count: 4;
    -webkit-column-gap: 20px;
    column-count: 4;
    column-gap: 20px;
    [/code]

    but it doesn't work for me, there is still a long one-column button list.
    is it possible I can find the modified colvis.js from link [1] on live.datatable.net?

    PS: I still not figured out how to make my sample code run on live.datatable.net, sorry for that :(
  • vtgoalvtgoal Posts: 5Questions: 0Answers: 0
    nevermind, actually the above code works (at least show me 4 columns now), I just putted the code at wrong place.
This discussion has been closed.