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

grid.setFilterEditorCriteria with boolean/checkbox field not working

$
0
0
Hello, using SmartGWT Power Nightly of 2013-01-09.

I have a ListGrid with showFilterEditor true, and i want to automatically check a checkbox in a boolean field, to only show non-archived records.
Like so:
Code:

AdvancedCriteria crit = new AdvancedCriteria(new Criterion("teacherArchived", OperatorId.EQUALS, false));
grid.setFilterEditorCriteria(crit);
grid.filterByEditor();

this does not seem to work. In contrast, when doing something similar in a date field, for instance, where I'd preset a dateRange, it DOES work.

Is this on purpose, or is this a bug, or am I doing something wrong here?

Viewing all articles
Browse latest Browse all 4756

Trending Articles