Announcement

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

    ListGridField.setDefaultFilterValue() funcionaly

    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.
    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")
    );
    Unfortunately only second one works.
    Tested on SmartGWT 5.0p
    Best regards
Working...
X