选择 Telerik RadGrid 中的所有视图
在 Telerik Grid 中,假设我们添加一个 gridclientselect
列,并且仅检查当前视图中的行被选中的 checkall
,但我的目的是模仿在所有视图中行的用户视图已选择。所以我添加了一个复选框列作为网格绑定列。我的目的是当用户选中标题复选框时,我应该显示为选择了所有视图中的所有行。这是通过 Javascript 和 asp.net 代码实现的。您能否提供一些此类功能的链接?
In Telerik Grid,suppose we add a gridclientselect
column, and checkall
is checked only rows in current view is selected, but my purpose is to mimic the user that rows in all the views are selected. So I added a checkbox column as gridbound column. My purpose is when the user checks on the header checkbox, I should show as all the rows in all views are selected. This is achieved through Javascript and asp.net code. Could you please provide some links for this type of functionality?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的建议是使用内部带有 asp 复选框的模板列,如 此示例,当选中标题复选框时,通过其 Selected 属性将所有网格项标记为选定状态,并在重新绑定操作(如排序、分页、过滤等)时重复该操作。
My proposal is to use a template column with asp checkboxes inside it as in this sample and when the header checkbox is checked, mark all grid items as selected via their Selected property and repeat that operation on rebind operations like sorting, paging, filtering, etc.