Change event of the number of page dropdown in paging
Change event of the number of page dropdown in paging
Can i handle the change event when I select other value from the dropdown of the pagination. I am using the following code for paging:
$('table#SearchObservation').dataTable({
"aLengthMenu": [[10, 25, 50, 100], [10, 25, 50, 100]],
"iDisplayLength": 10,
"bFilter": false,
"bInfo": false,
"sDom": 'l',
//"sDom": '<"top"i>lt<"bottom"pf>',
"sPaginationType": "full_numbers",
"bJQueryUI": false,
"oLanguage": {
"sLengthMenu": "View Per Page _MENU_ "
},
"aoColumnDefs": [
{ 'bSortable': true, 'aTargets': [0]}]
});
$('table#SearchObservation').dataTable({
"aLengthMenu": [[10, 25, 50, 100], [10, 25, 50, 100]],
"iDisplayLength": 10,
"bFilter": false,
"bInfo": false,
"sDom": 'l',
//"sDom": '<"top"i>lt<"bottom"pf>',
"sPaginationType": "full_numbers",
"bJQueryUI": false,
"oLanguage": {
"sLengthMenu": "View Per Page _MENU_ "
},
"aoColumnDefs": [
{ 'bSortable': true, 'aTargets': [0]}]
});
This discussion has been closed.
Replies
Allan
thanks for your suggestion.
I have added the following code to the dataTable, but didn't get any result
"change": function (event, ui) {
debugger;
alert("Hello");
}
I don't want to unbind the dataTable.
Deepak
Allan