Hi,
I'm using smartGWT version 2.5 and need to have implemented various styles of filtering in ListGrid, one of that style should be database like wildcard filtering using % that means when I have following data
Test 1, Test 2
and put T%1, Test 1 should be returned.
I see that there it's possible to setup various filter operator using ListGrid.setFilterOperator but none of that is fitting this requirement, similar is regexp but I don't want to support all regexp.
I found out also applyFilter method in ResultSet javadoc http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/ResultSet.html, but this method is not accsesible in Java API.
only one solution I found is that I'll transform criteria when user type %, I'll create Regexp expression and % will be replaces to .* but it doesn't seem to as a good solutions, what do you propose to me to solve it?
thanks,
michal
I'm using smartGWT version 2.5 and need to have implemented various styles of filtering in ListGrid, one of that style should be database like wildcard filtering using % that means when I have following data
Test 1, Test 2
and put T%1, Test 1 should be returned.
I see that there it's possible to setup various filter operator using ListGrid.setFilterOperator but none of that is fitting this requirement, similar is regexp but I don't want to support all regexp.
I found out also applyFilter method in ResultSet javadoc http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/ResultSet.html, but this method is not accsesible in Java API.
only one solution I found is that I'll transform criteria when user type %, I'll create Regexp expression and % will be replaces to .* but it doesn't seem to as a good solutions, what do you propose to me to solve it?
thanks,
michal
Comment