如何根据文本框中输入的文本对gridview中的记录进行排序 [英] how sort record in gridview according to text input in textbox

查看:72
本文介绍了如何根据文本框中输入的文本对gridview中的记录进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我想对从数据库填充的gridview中的记录显示进行排序,当我在文本框中输入任何文本时,gridview根据文本框中输入的文本进行排序.当我第一次打开页面时,当我清除文本框时,gridview会以他的第一个条件显示.这并不困难:

http://tablesorter.com/docs/example-option-text-extraction.html [ ^ ]

然后这样做-

 


(" ).tablesorter({ textExtraction:function(elem){ var


input =


sir, i want to sort record display in gridview which is fill from database,When i enter any text in textbox gridview record sort according to text input in the text box. and when i clear textbox gridview show in his first condition when page is loaded first time.

解决方案

You need to define a custom text extraction function. It''s not difficult:

http://tablesorter.com/docs/example-option-text-extraction.html[^]

then do this -


("table.sortable").tablesorter({ textExtraction: function(elem) { var


input =


这篇关于如何根据文本框中输入的文本对gridview中的记录进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆