fnStateLoadParams some times not executed
fnStateLoadParams some times not executed
valenpo
Posts: 13Questions: 0Answers: 0
Some times fnStateLoadParams are not executed when loading table state.
form.resultTable = $( form.searchResult ).dataTable({
"fnStateLoadParams": function (oSettings, oData) {
var json = ${resultsBean.tableState};
if (json) {
oData.iDisplayStart = json.iDisplayStart;
oData.aaSorting = json.aaSorting;
}
},
"bAutoWidth": false,
"bFilter": false,
"bServerSide": true,
"sAjaxSource": "fetchtabledata.do?"+"instance=",
"bStateSave": true,
"bDeferRender": true,
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
var cells = $( nRow ).children( 'td' ),
ch = $( cells[0] ).text().split(":"),
vr = $( cells[1] );
at = $( cells[2] );
hl = $( cells[3] );
var usualCell = 1;
//add checkbox
$( cells[0] ).text("").html( $( '' ).attr( "checked", ( ch[0] == 1 ) ? true:false ));
//add attachment
if ( at.text() == 1) {
usualCell++;
at.html( '' );
/*
at.html( "
form.resultTable = $( form.searchResult ).dataTable({
"fnStateLoadParams": function (oSettings, oData) {
var json = ${resultsBean.tableState};
if (json) {
oData.iDisplayStart = json.iDisplayStart;
oData.aaSorting = json.aaSorting;
}
},
"bAutoWidth": false,
"bFilter": false,
"bServerSide": true,
"sAjaxSource": "fetchtabledata.do?"+"instance=",
"bStateSave": true,
"bDeferRender": true,
"fnCreatedRow": function( nRow, aData, iDataIndex ) {
var cells = $( nRow ).children( 'td' ),
ch = $( cells[0] ).text().split(":"),
vr = $( cells[1] );
at = $( cells[2] );
hl = $( cells[3] );
var usualCell = 1;
//add checkbox
$( cells[0] ).text("").html( $( '' ).attr( "checked", ( ch[0] == 1 ) ? true:false ));
//add attachment
if ( at.text() == 1) {
usualCell++;
at.html( '' );
/*
at.html( "
This discussion has been closed.