Editable add-in is not compatible with ColVis plugin
Editable add-in is not compatible with ColVis plugin
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.
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.
This discussion has been closed.
Replies
Thanks,
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
Allan
Is there any other option available to integrate this.. How can i solve this issue??
Allan
Is there any other option to edit the columns with colvis.
Allan