fnServerParams
fnServerParams
genial
Posts: 9Questions: 0Answers: 0
Hi,
I have been using DataTables 1.8, i have a problem with fnServerParams,
This is my Code:
[code]
$('#tableReport').dataTable( { "bProcessing": true
, "bServerSide": true
, "bAutoWidth": true
, "bLengthChange": false
, "sScrollX": newWidth.toString() + "px"
, "sScrollY": gridHeight.toString() + "px"
, "iDisplayLength": numberOfRows
, "sAjaxSource": "/Reports/DataTablesIndex"
, "fnServerParams": function( aoData )
{
aoData.push( { name: "ntype", value: 7 } );
}
, "aoColumns": columns
, "aaSorting": [ [ 0, "asc" ] ]
, "sPaginationType": "full_numbers"
, "sDom": '<"top"ip<"clear">>rt'
}
).fnSetFilteringDelay( 300 );
TableReport = $('#tableReport').dataTable();
}
[/code]
In the DataTableParams
i have added ntype.
But when i run , i could not get the ntype value at server.
ntype is 0 when i debug,
Can anyone help ?
Thanks.
I have been using DataTables 1.8, i have a problem with fnServerParams,
This is my Code:
[code]
$('#tableReport').dataTable( { "bProcessing": true
, "bServerSide": true
, "bAutoWidth": true
, "bLengthChange": false
, "sScrollX": newWidth.toString() + "px"
, "sScrollY": gridHeight.toString() + "px"
, "iDisplayLength": numberOfRows
, "sAjaxSource": "/Reports/DataTablesIndex"
, "fnServerParams": function( aoData )
{
aoData.push( { name: "ntype", value: 7 } );
}
, "aoColumns": columns
, "aaSorting": [ [ 0, "asc" ] ]
, "sPaginationType": "full_numbers"
, "sDom": '<"top"ip<"clear">>rt'
}
).fnSetFilteringDelay( 300 );
TableReport = $('#tableReport').dataTable();
}
[/code]
In the DataTableParams
i have added ntype.
But when i run , i could not get the ntype value at server.
ntype is 0 when i debug,
Can anyone help ?
Thanks.
This discussion has been closed.
Replies
Allan
Allan