Announcement

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

    Enhancement(?):ListGridField.setFilterEditorValueM ap behavior

    Hi Isomorphic,

    what do you think of the following enhancement?
    Right now, if I use the following code for a ListGridField, the result is a dropdown with 5 lines (1x no filter, 3x "not ready", 1x "ready").

    Code:
    HashMap<String, String> vM = new HashMap<String, String>();
    vM.put("missingBoth", "not ready");
    vM.put("missingAddress", "not ready");
    vM.put("missingCategory", "not ready");
    vM.put("finished", "ready");
    public final class myListGridField.setFilterEditorValueMap(vM);
    I think it would be better to have instead 3 lines (1x no filter, 1x "not ready", 1x "ready"), where "not ready" results in an OR-AdvancedCriteria with 3 sub-Criteria.

    Do you think this enhancement is a good idea? Is it currently possible to archive this behaviour in some other way?

    Best regards,
    Blama

    #2
    Hi Isomorphic,

    I'm pretty sure it can be solved today using CriteriaEditing http://www.smartclient.com/smartgwte...iaEditing.html.

    But for me the methods
    setCanEditCriterionPredicate (new FormItemCanEditCriterionPredicate () {...};
    setCriterionSetter (new FormItemCriterionSetter () {...};
    setCriterionGetter (new FormItemCriterionGetter () {...};

    don't work as expected (especially setCriterionSetter, which gets called with parameter I don't understand).
    Therefore I created this enhancement suggestion thread: http://forums.smartclient.com/showthread.php?t=29155.

    Best regards,
    Blama
    Last edited by Blama; 16 Jan 2014, 06:40.

    Comment

    Working...
    X