using wildcards in a filter for ListGrid (SmartGWT)

≡放荡痞女 提交于 2020-01-03 01:43:03

问题


I'm having the following ListGrid:

ListGridField eml = new ListGridField(EmlSearchItem.EMAIL, EmlSearchItem.EMAIL_TITLE);
emlGrid = new ListGrid();
emlGrid.setWidth("70%");
emlGrid.setHeight("60%");
emlGrid.setFields(eml);
emlGrid.setAutoFetchData(true);
emlGrid.setSelectionType(SelectionStyle.SINGLE);
emlGrid.setAllowFilterExpressions(true);
emlGrid.setShowFilterEditor(true);
emlGrid.setAutoFetchTextMatchStyle(TextMatchStyle. SUBSTRING);

according to the JavaDoc setting allowFilterExpressions to true should enable wildcards, like the * but I don't get any results.

for instance, I'm looking for a*com when I have an entry like 12343@chat.mysite.com inside my list won't return me any hits

is there another flag I need to set to get wildcards working in a ListGrid with filtering?

来源:https://stackoverflow.com/questions/15100449/using-wildcards-in-a-filter-for-listgrid-smartgwt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!