Show / hide columns dynamically on Server Side Processing

Show / hide columns dynamically on Server Side Processing

samuel89757samuel89757 Posts: 7Questions: 3Answers: 0

How to Implement ? I tried out this link (http://www.datatables.net/examples/api/show_hide.html) but still cannot get it to work. I also found out that another way is using ColVis.

I'm using server side processing.

var otable = $('#example').dataTable( { 'processing': true, 'bServerSide': true, 'deferRender': true, 'serverSide': true, 'aoColumns': [ { 'mData': 0}, { 'mData': 1}, { 'mData': 2}, ], } ); );} );

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    Is that all of your code?

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    @samuel89757 - Please link to the page in question so it can be debugged.

    Allan

  • samuel89757samuel89757 Posts: 7Questions: 3Answers: 0
    edited November 2014

    test

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    As requested, please link to the page or a test page showing the issue. Otherwise we can't offer any help.

    Allan

  • samuel89757samuel89757 Posts: 7Questions: 3Answers: 0

    Allan, I managed to solve it on my own. I will put a link page next time.

This discussion has been closed.