2014-07-22 55 views
1

有没有办法在筛选搜索中包含整个值?例如,搜索“123”将返回值“Test 123”。默认情况下,该控件仅从第一个字符开始过滤。Dojo Filtering选择筛选

我试着修改了提到here的queryExpr属性,但没有任何东西似乎适用于我。感谢您的任何提示。

+0

[dijit.form.FilteringSelect用字符串搜索(可能的重复http://stackoverflow.com/questions/2094232/dijit-form-filteringselect-与子串搜索) – DanMan

回答

1

我意识到这是2年前,但我只是回答,以防其他人一起来看!

可以指定queryExpr这样的:

<xe:djFilteringSelect id="djFilteringSelect1" value="#{viewScope.myvalue}" autoComplete="false"> 
    <xe:this.queryExpr><![CDATA[${javascript:"*$\{0}*"}]]></xe:this.queryExpr> 
    <xp:selectItems id="selectItems1" value="#{myBean.mySelectItems}"/> 
</xe:djFilteringSelect>