ColVis - Put Max Limit on Columns to Display

ColVis - Put Max Limit on Columns to Display

kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
edited March 2013 in General
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.

Replies

  • kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
    I have this mess of code inside ColVis.js, which doesn't (yet) work - where I'm trying to get the number of columns that are visible ..

    [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
This discussion has been closed.