Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

fetchData() with criteria on ListGrid does not filter data

$
0
0
I have the following code for doing a datasource filtered fetch operation using date criteria, while the grid is displaying the filter editor:

Code:

AdvancedCriteria dateCriteria =
  new AdvancedCriteria(OperatorId.AND, new Criterion[] {new Criterion("date", OperatorId.GREATER_OR_EQUAL, new Date())});
grid.fetchData(dateCriteria);

The criteria is correctly displayed on the specified field of the filter editor, the problem is the data is not being filtered.
However, this procedure makes the filter editor work:
1. Use the filter editor to clean the displayed criteria
2. Re-fetch the data by clicking "OK"
3. Filter again using the same values

The programatically-set criteria is never applied on the fetchData operation... Do you guys have any idea of what might be happening here? Any help would be greatly appreciated.


SmartClient Version: v9.0_2013-07-03/LGPL Development Only (SmartGWT 4.0)
Google Chrome (Version 29.0.1547.62 m)

Viewing all articles
Browse latest Browse all 4756

Trending Articles