bstatesave is not working

bstatesave is not working

nitinpnitinp Posts: 0Questions: 1Answers: 0

Hello,

I am using DataTable version: 1.9.4.

In that bstatesave is not working if I used makeEditable feature.

If I remove makeEditable .js files then bstatesave working fine.


Please go through the below script code I have written.

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&section=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);

If you get any answer please let me ASAP.

Thanks

This discussion has been closed.