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
chtquoc
Posts: 3Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies
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.