如何对特定列使用 Quicksearch jquery 插件?
我有一个gridview,我想在其上应用jquery的快速搜索插件。我已经成功实现了它。但我希望搜索应该只根据特定的列,例如:- 我连续三列。名字、姓氏、地址。现在我只想搜索名字。但通常 quciksearch 插件是从整个网格视图中搜索。我已经通过链接完成了:-http://www.misfitgeek.com/2011/06/filtering-an-asp-net-gridview-control-with-jquery/
请尽快帮助我。提前致谢。
I have a gridview on which i want to apply quick-search plugin of jquery.I have implemented it successfully. But i want the search should be only according to a particular column, like:- I have three columns in a row. firstname, lastname, address. Now i want to search for firstname only.But normally quciksearch plugin is searching from whole gridview. I have done it from link :-http://www.misfitgeek.com/2011/06/filtering-an-asp-net-gridview-control-with-jquery/
Please help me as soon as possible. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以定义自定义 testQuery 函数并按行中的单元格索引进行过滤:
You may define custom testQuery finction and filter by cell index in row:
我知道我的代码在技术上并不好,它刚刚完成了我的任务。 编写代码:-
我在这里和 gridview 中
i know my code is not good technically its just completed my task. i am writing the code here
and in gridview :-