bstatesave is not working
bstatesave is not working
Hello,
I am using DataTable In that I use "bStateSave": true, its not working if use makeEditable below is my script code. please check and let solution.
dataTable =$('#tblTranRprtData').dataTable({
"aaSorting": [[ 18, "created" ]],
"bLengthChange": false,
//"iDisplayStart": 0,
"bAutoWidth": false,
// "sCookiePrefix": "rpt_trn_",
"iDisplayLength": ,
"bFilter": false,
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": ajaxPage,
"sAjaxDataProp": "aaData",
"sDom": "<'dataTables_header clearfix'<'col-md-6'><'col-md-6'C>r><'RespoTblg't><'dataTables_footer clearfix'<'col-md-6'i><'col-md-6'p>>",
"bStateSave": true,
"aoColumns": [
{"sClass": "read_only"},
{"sClass": "read_only",},
{"sClass": "read_only nowrap","bSortable": false},
{"sClass": "read_only nowrap"},
{"sClass": "read_only"},
{"sClass": "read_only"},
{"sClass": "read_only"},
{"sClass": "align-right"},
{"sClass": "align-right"},
{"sClass": "align-right"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"},
{"sClass": "align-left read_only"}
],
"oColVis": {
"buttonText": "Columns <i class='icon-angle-down'></i>",
"iOverlayFade": 0,
"bShowAll": true,
"sAlign": "right",
"activate": "mouseover",
"aiExclude": [ 0,1 ],
},
"aoColumnDefs": [
{
'bSortable': false,
"fnRender": function ( oObj ) {
return '<input type=\"checkbox\" class=\"uniform\" name=\"comm_id[]\" value="'+ oObj.aData[0] +'"> ';
},
"aTargets": [ 1 ]
}
]
}).makeEditable({
sUpdateURL: "report_transaction.php?mode=AJAX§ion=Updatedata",
fnShowError: function (message, action) {
var message = message.split('|X|');
notyMessage(message[1],message[0]);
},
sReadOnlyCellClass: "read_only"
});
// hide 1st columns
dataTable.fnSetColumnVis( 0, false );
},500);
Thanks.