Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    fetchData() with criteria on ListGrid does not filter data

    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)

    #2
    What does the server log say?
    Perhaps it does your fetch first, then a standard-fetch with no criteria?

    Comment

    Working...
    X