Editable add-in is not compatible with ColVis plugin

Editable add-in is not compatible with ColVis plugin

premkumarpremkumar Posts: 9Questions: 0Answers: 0
edited December 2012 in General
Allan,

Column editable is not working when i use colvis to hide the column. Same issue i faced for column filter with colvis. But i fixed that issue by adding" bUseColVis: true" in column filter. Is there any solution to solve this issue??? I want to integrate editable column, colvis and column filter widget.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Editor should be fully compatible with ColVis. Could you link me to a test page which uses Editor and ColVis which shows the problem so I can debug and address the issue?

    Thanks,
    Allan
  • premkumarpremkumar Posts: 9Questions: 0Answers: 0
    Allan,
    Herewith copied my code below. It include colvis also editable column.

    var oTable = jetBus('#bookingList').dataTable({"aoColumnDefs": [
    { "bVisible": false, "aTargets": [ 0,1,11,12,16,19,20,21 ] }
    ],"aaSorting": [[ 1, "desc" ]],'sAjaxSource':'getInventory.php',"bPaginate":false, "sDom": 'TC<"top">lfrtip',
    "oColVis": {

    "aiExclude": [ 4,5,6,7,8 ],
    },
    "oTableTools": {
    "sSwfPath" : "https://jetbus.in/datatables/media/swf/copy_csv_xls_pdf.swf"
    }, "fnRowCallback": function( nRow, aaData, iDisplayIndex ) {
    if ( aaData[14] == "CAN" )
    {
    // testrow IS THE CSS CLASS WITH THE CORRECT background-color
    $('td', nRow).addClass( 'redClass' );
    //$(aaData[14]).append('test');
    }
    else if ( aaData[14] == "CON" )
    {
    // testrow IS THE CSS CLASS WITH THE CORRECT background-color
    $('td', nRow).addClass( 'greenClass' );
    }
    else if ( aaData[14] == "TEN" )
    {
    // testrow IS THE CSS CLASS WITH THE CORRECT background-color
    $('td', nRow).addClass( 'blackClass' );
    }
    return nRow;
    },

    "fnFooterCallback": function ( nRow, aaData, iStart, iEnd, aiDisplay ) {
    /*
    * Calculate the total market share for all browsers in this table (ie inc. outside
    * the pagination)
    */
    //var iTotalMarket = 0;
    //for ( var i=0 ; i
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    The `makeEditable` plug-in is a 3rd party piece of software and not supported by this project. I'd suggest opening an issue against that library.

    Allan
  • premkumarpremkumar Posts: 9Questions: 0Answers: 0
    Allan,
    Is there any other option available to integrate this.. How can i solve this issue??
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    I'm afraid I don't know how the `makeEditable` plug-in operates, and it sounds like an issue with it and its event handlers. You'd need to raise it with that project or debug the makeEditable code.

    Allan
  • premkumarpremkumar Posts: 9Questions: 0Answers: 0
    Allan,
    Is there any other option to edit the columns with colvis.
  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Editor, which I referred to in my first reply, works just fine with hidden columns: http://editor.datatables.net/ .

    Allan
This discussion has been closed.