Pagination Sorting as well as Filtering issue
Pagination Sorting as well as Filtering issue
vikash_chaurasia1
Posts: 13Questions: 0Answers: 0
Can we achieve the Pagination/Sorting as well as filtering similar in manner as shown in the example given in the URL: http://datatables.net/index
Can we put the "Showing 1 to 10 of 58 entries First Previous Next Last" i.e. pagination functionality on the table top as well?
Please suggest how?
Can we put the "Showing 1 to 10 of 58 entries First Previous Next Last" i.e. pagination functionality on the table top as well?
Please suggest how?
This discussion has been closed.
Replies
How we can make the same filter (Search functionality) as well as the Pagination functionality available at both the Top and bottom of the table?
Documentation: http://datatables.net/usage/options#sDom
Example: http://datatables.net/examples/basic_init/dom.html
Allan
Your reply was very much helpful to me.
I am using '<"top"if>t<"bottom"lp<"clear">' for the sDOM parameters for the final table Layout.
Can we control everything in the final result?
Allan
[code]
$("#Results").css ("width", "100%").dataTable({
"aaData": d,
"bJQueryUI": true, "sPaginationType": "full_numbers", "sDom": '<"H"frp>t<"F"il>',
"bAutoWidth": false, "aaSorting": [],
"oLanguage": { "sUrl": "../scripts/localized.txt" },
....
}
[/code]
Is it possible to specify some default settings (for example, by default turns on jQueryUI, use full number pagination, sharing a common sDom and a customized language file, etc.) for all DataTables, so the configuration can be reduced?
[code]
$("#Results").css ("width", "100%").dataTable({
"aaData": d
....
}
[/code]
Oops, I misplaced the post. I couldn't delete the above. It should be a new thread :P
Allan
http://datatables.net/forums/comments.php?DiscussionID=1305
Please remove my posts here if it is inappropriate.