admin管理员组文章数量:1429336
I was wondering if anyone knows if any great plugins for pagination on unordered and ordered lists, I would like an easy but highly customisable plugin. If anyone has any suggestions that would be great, I've found this link below, has anyone used any before?
/
I was wondering if anyone knows if any great plugins for pagination on unordered and ordered lists, I would like an easy but highly customisable plugin. If anyone has any suggestions that would be great, I've found this link below, has anyone used any before?
http://www.jquery4u./plugins/10-jquery-pagination-plugins/
Share Improve this question edited May 6, 2014 at 15:42 Zong 6,2405 gold badges33 silver badges46 bronze badges asked Aug 17, 2012 at 15:25 ShannonShannon 5701 gold badge6 silver badges14 bronze badges 2- 1 Can you show us what you already have? – Lukas Eder Commented Aug 17, 2012 at 15:26
- What are you trying to paginate? – Scott Simpson Commented Aug 17, 2012 at 15:27
2 Answers
Reset to default 2Take your pick!
http://www.jquery4u./plugins/10-jquery-pagination-plugins/
try this
Int Icount = ds1.Tables[0].Rows.Count(Total no of records, this should be e from Database tables);
int startindexx = SIndex(here SIndex like a no of pages like 1,2,3,etc, it from your clicking pagination buttons);
int EndIndex = SIndex;
if (EndIndex == 1) { EndIndex = 0; }
if (startindexx > 1) {
startindexx = startindexx - 1;
startindexx = startindexx * 10;
startindexx = startindexx + 1;
EndIndex = EndIndex * 10;
}
else {
EndIndex = EndIndex + 10;
}
var Pages = 0; Pages = Icount / 10; var PagesReminder = Icount % 10;
Icount = ds1.Tables[0].Rows.Count;
int startindexx = Convert.ToInt32(SIndex);
int EndIndex = Convert.ToInt32(SIndex);
if (EndIndex == 1) {
EndIndex = 0;
}
if (startindexx > 1) {
startindexx = startindexx - 1;
startindexx = startindexx * 10;
startindexx = startindexx + 1;
EndIndex = EndIndex * 10;
}
else {
EndIndex = EndIndex + 10;
}
var Pages = 0; Pages = Icount / 10;
var PagesReminder = Icount % 10;
if (PagesReminder != 0) {
Pages = Pages + 1;
}
本文标签: javascriptPagination for listsStack Overflow
版权声明:本文标题:javascript - Pagination for lists - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745516136a2661550.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论