简体   繁体   English

在JavaScript中获取WebDataGrid页面大小

[英]Get WebDataGrid page size in javascript

I am using Infragistic WebDataGrid . 我正在使用Infragistic WebDataGrid When it load first, it gets data from database as data source in Page_Load event. 当它首先加载时,它从数据库中获取数据作为Page_Load事件中的数据源。 On some UI interaction, I am rebinding it with JQuery.Ajax call by clearing it and appending new html using append method of JQuery. 在一些UI交互中,我通过清除JQuery.Ajax并使用JQuery的append方法追加新的html来重新绑定它。 It works fine except I am not able to persist page size that I have declared in mark-up. 它工作正常,除了我无法保持我在标记中声明的页面大小。 Is there any way to accessing page size in javascript? 有没有办法在javascript中访问页面大小?

Or is there anything else I can do to achive this. 或者我还能做些什么来实现这个目标。

您可以像这样在客户端上访问页面大小:

$find("WebDataGridID").get_behaviors().get_paging().get_pageSize();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM