Dynamic column visibility

Dynamic column visibility

merihmerih Posts: 24Questions: 0Answers: 0
edited December 2011 in General
Hi all,

I have a problem visibility of the columns so I decided to write the forum after I waste a day :)
On my project column counts depends on the data from the database, so column count changes the value of the data..
I use colvis plugin as well. I wrote code like below

[code]
var columnLength = $('#entityTable').find('tr')[0].cells.length; // Ex: columnLength=6
var app = new Array();

for (i=3; i

Replies

  • jp_noronhajp_noronha Posts: 59Questions: 0Answers: 0
    Hi

    I may be wrong but should not { "bVisible": false, "aTargets": [ app ] } be something like { "bVisible": false, "aTargets": app } ?
  • merihmerih Posts: 24Questions: 0Answers: 0
    Hello jp_noronha

    You are right.. thank you so much :) It works right know.. :)
This discussion has been closed.