I've found a possible bug in ListGridField.setDefaultFilterValue().
It simply has no effect.
Correct me if I'm wrong but this codes should be functionally identical.
Unfortunately only second one works.
Tested on SmartGWT 5.0p
Best regards
It simply has no effect.
Correct me if I'm wrong but this codes should be functionally identical.
Code:
ListGridField fieldActive = new ListGridField("active"); fieldActive.setFilterOnKeypress(true); [B]fieldActive.setDefaultFilterValue(true);[/B] listGrid.setFields( new ListGridField("display"), fieldActive, new ListGridField("type") );
Code:
ListGridField fieldActive = new ListGridField("active"); fieldActive.setFilterOnKeypress(true); BooleanItem itemActive = new BooleanItem(); [B]itemActive.setDefaultValue(true);[/B] itemActive.setShowLabel(false); fieldActive.setFilterEditorProperties(itemActive); listGrid.setFields( new ListGridField("display"), fieldActive, new ListGridField("type") );
Tested on SmartGWT 5.0p
Best regards