ColVis - Put Max Limit on Columns to Display
ColVis - Put Max Limit on Columns to Display
kraftomatic
Posts: 78Questions: 13Answers: 0
Has anyone used ColVis and limited the number of columns that can be displayed at once? I'm struggling to get this to work and it doesn't appear that it should be difficult.
The reason is that once 10-15 columns are selected, the table blows out the wrapper of the page and I'd like to limit what the user can see at once.
Thanks.
The reason is that once 10-15 columns are selected, the table blows out the wrapper of the page and I'd like to limit what the user can see at once.
Thanks.
This discussion has been closed.
Replies
[code]
$(nButton).click( function (e) {
//alert("add check to see how many columns are visible. if too many (say 8), reject/return false and show error message. ");
//alert(iLen=that.s.abOriginal.length);
//this.s.abOriginal.push( this.s.dt.aoColumns[i].bVisible );
alert(that.oColumn.bVisible.length);
for ( var i=0, iLen=that.s.abOriginal.length ; i