ColReorder 1.1.0 Dev and Colvis 1.0.8 Error in IE 8

ColReorder 1.1.0 Dev and Colvis 1.0.8 Error in IE 8

chtquocchtquoc Posts: 3Questions: 0Answers: 0
edited March 2013 in DataTables 1.9
Dear Allan,

I use colReorder with Colvis in my datatable, when i move column to new position everything is fine. but when i click on Show/hide button

new position of Colvis doesn't update. i try to use version ColReorder 1.0.8. it is ok. I don't use ColReorder 1.0.8 because when i move column and i use ajax to fill data. everything show wrong position.

please help.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Please link to a test case showing the problem, using the current development nighties of ColReorder and ColVis ( http://datatables.net/download ).

    Allan
  • chtquocchtquoc Posts: 3Questions: 0Answers: 0
    Thanks Allan,

    But i found other solution from previous Issue is post by someone i don't remember.


    in function $.fn.dataTableExt.oApi.fnColReorder ... of ColReorder 1.1.0 Dev

    I added some code before /* Fire an event so other plug-ins can update */
    [code]
    if ( typeof ColVis != 'undefined' )
    {
    ColVis.fnRebuild( oSettings.oInstance );
    }

    /* Fire an event so other plug-ins can update */
    $(oSettings.oInstance).trigger( 'column-reorder', [ oSettings, {
    "iFrom": iFrom,
    "iTo": iTo,
    "aiInvertMapping": aiInvertMapping
    } ] );

    if ( typeof oSettings.oInstance._oPluginFixedHeader != 'undefined' )
    {
    oSettings.oInstance._oPluginFixedHeader.fnUpdate();
    }
    [/code]

    And then Colvis worked on IE when i move column and Colvis is updated on list of fields.
This discussion has been closed.