I created a listgrid with a filter in SmartGwt 2.0. The listgrid has integer data and float data as well as strings.
When the user tries to filter the numeric data, it acts like "contains" - entering "1" will match "21" or "517" or any number with a 1.
When I user FilterBuilder to create a custom filter, the only options available for numeric fields in the drop down menu are equals, greater than, etc. Contains is not an option, as it is for text data.
Is there a way for the filter on a listgrid to treat the data as an Integer - the same as FilterBuilder? That is, do "equals" semantics rather than "contains"?
The field is set to Integer type in the Data source, and I also tried setting filter editor type to IntegerItem.
Note: this is a problem for us because we do lazy fetching on a large set of data. So, the server has to handle the filtering until all the data is cached. It's not easy to do "contains" on an integer in SQL or Java.
TIA!
When the user tries to filter the numeric data, it acts like "contains" - entering "1" will match "21" or "517" or any number with a 1.
When I user FilterBuilder to create a custom filter, the only options available for numeric fields in the drop down menu are equals, greater than, etc. Contains is not an option, as it is for text data.
Is there a way for the filter on a listgrid to treat the data as an Integer - the same as FilterBuilder? That is, do "equals" semantics rather than "contains"?
The field is set to Integer type in the Data source, and I also tried setting filter editor type to IntegerItem.
Note: this is a problem for us because we do lazy fetching on a large set of data. So, the server has to handle the filtering until all the data is cached. It's not easy to do "contains" on an integer in SQL or Java.
TIA!
Comment