My datatable looks like this:
Here it is showing default 10 datas in a single page.I need to show 1 to 5 of 58 entries so i tried to put max:5 but it is not working.I need to show only 5 data and the user may use pagination for other data access.
My code for datatable is:
var table = $('#firstTable').DataTable({
"processing" : true,
"scrollY": 410,
"scrollX": true,
order: [ 0, 'asc' ],
max :5,
"ajax" : {
"url" : A_PAGE_CONTEXT_PATH + "/form/api/getAllSelection/all",
dataSrc : ''
},
"columns" : [ {
"data" : "selectionId"
}, {
"data" : "selectionDate"
}, {
"data" : "selectedBy"
}, {
"data" : "eximPanNo"
}, {
"data" : "eximPanName"
}, {
"data" : "eximPanAddr"
}, {
"data" : "eximPanPhone"
}, {
"data" : "selectionType"
} ]
});
