如何知道MVC中Telerik网格上应用过滤的列
我有一个 MVC 应用程序,我正在使用 telerik grid 来显示列表。我还在列上使用过滤选项。 可以知道当前过滤应用于哪一列,即获取列名称和值,或者如果可能的话突出显示这些列。
谢谢 苏普里亚
I have an MVC application and in that i am using telerik grid to display the list . I am also using filtering option on the column.
Is is possible to know on which column the current filtering is applied i.e to get the column name and value or if possible to highlight thoes column.
Thanks
supriya
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下 jQuery 语句来查找过滤后的列元素:
它将返回列标题(元素)。您可以轻松获取列索引:
然后获取列 JavaScript 对象:
You can use the following jQuery statement to find the filtered column elements:
It will return the column header (the element). You can obtain the column index easily:
And then get the column JavaScript object: