在jqgrid中,反正有支持greaterthan和lesssthan在工具栏搜索 [英] in jqgrid, is there anyway to support greaterthan and lessthan in the toolbar search

查看:195
本文介绍了在jqgrid中,反正有支持greaterthan和lesssthan在工具栏搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以通过使用高级搜索来支持这一点,但人们发现它有点麻烦。这很酷,如果我可以在工具栏搜索支持这样的权利:

i know i can support this by using the advanced search but people are finding it a bit cumbersome. It would be cool if i could support something like this right in the toolbar search:

< 100



or


2010年12月11日

只需在工具栏文本框中输入以上字符串即可。是否有jqgrid支持这个

by just entering this string above in the toolbar textbox. is there anyway for jqgrid to support this

推荐答案

您可以为所使用的列定义一个比较操作在搜索工具栏中(请参阅答案 )。如果在 sopt 数组中包含 searchoptions 'lt''le'操作将用于过滤: p>

You can define one compare operation for the column used in the searching toolbar (see the answer). If the first operation in the sopt array of searchoptions for the corresponding column is 'lt' or 'le' the operation will be used for the filtering:

searchoptions: {sopt:['lt','eq','ne','le',...] }

来自 sopt 的全套值将会是用于Adnanced搜索

The full set of values from sopt will be used for the "Adnanced Searching"

这篇关于在jqgrid中,反正有支持greaterthan和lesssthan在工具栏搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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