First of all thanks to C# Corner for being a good part of Programmers.
Here I want to describe my problem which i am facing.
I fetched data from sharepoint list using jquery on page.
but now i want to apply pagination without using any plugin.
code is as below to display data :
used for fetch
liHtml = liHtml + "
+ "
+ col3 + "
table structure:
<table id="CP" width="100%" border="0" cellpadding="3" cellspacing="1"><thead><tr><th scope="col">SNoth><th scope="col">BookJournalTitleth><th scope="col">BookType th><th scope="col">ISBNNumberth><th scope="col">BookJournalAuthorth><th scope="col">INRPriceth><th scope="col">Titleth>tr>thead> table> Now please let me know how can i apply pagination using Jquery so that only 5 rows display per page and pagination work on NEXT PREVIOUS button.
Thanks.


Prasham SabadraRank #116 · 19.3K reputationPosted Feb 19, 2015, 8:04 PM EST
Not sure about the exact requirement but just thought, if it is possible to implement the requirement with search web part then for content search webpart (SharePoint 2013), there is display template available with paging option.
If its not SharePoint 2013 then we can also use Search Result web part.
Please share your thoughts.
Vipin TyagiRank #868 · 2.5K reputationPosted Feb 19, 2015, 8:17 PM EST
Manpreet SinghRank #15 · 50.7K reputationPosted Feb 23, 2015, 9:57 AM EST
This might help you.
Url:- https://datatables.net/examples/basic_init/alt_pagination.html
Cheers !