找回密码
 立即注册

QQ登录

只需一步,快速开始

hanyu3120552

注册会员

9

主题

24

帖子

193

积分

注册会员

积分
193

活字格认证

[已处理] asp.net分页问题

hanyu3120552
注册会员   /  发表于:2016-5-9 18:21  /   查看:3407  /  回复:3
asp.net 的spread,分页那里是否可以实现显示分页的详细内容,比如说一共有10页,我可以直接点到第五页,不用下一页下一页的翻过去,这样如果页数多了很麻烦,我们的项目现在遇到了这个问题

3 个回复

倒序浏览
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-5-10 10:56:09
沙发
可以添加 数字 分页
  1. // Set the number of sheets.
  2. FpSpread1.Sheets.Count = 5;
  3. // Set the number of rows on the first sheet
  4. FpSpread1.Sheets[0].RowCount = 136;// Set the number of rows per page in this sheet.
  5. FpSpread1.Sheets[0].PageSize = 13;
  6.    
  7. // Display the pager only at the top of the component.
  8. FpSpread1.Pager.Position = FarPoint.Web.Spread.PagerPosition.Top;
  9. // Display both numbers and arrows by setting mode.
  10. // Set the mode after the position, otherwise an error.
  11. FpSpread1.Pager.Mode = FarPoint.Web.Spread.PagerMode.Both;
  12. // Format the text in the pager at the top.
  13. FpSpread1.Pager.Align = HorizontalAlign.Right;
  14. FpSpread1.Pager.Font.Bold = true;
  15. FpSpread1.Pager.Font.Name = "Trebuchet MS";
  16. FpSpread1.Pager.ForeColor = Color.Brown;
  17. FpSpread1.Pager.BackColor = Color.Orange;
  18. // Display at most four page numbers at a time.
  19. FpSpread1.Pager.PageCount = 4;
复制代码
回复 使用道具 举报
hanyu3120552
注册会员   /  发表于:2016-5-17 15:47:17
板凳
谢谢,已解决, 方案非常好
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-5-17 16:02:07
地板
不客气
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部