Announcement

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

    Use `setCriteria` on TreeGrid and include children

    Our TreeGrid has a search filter which calls this method

    var aCriteria = {
    _constructor: "AdvancedCriteria",
    operator: "and",
    criteria: [
    {
    fieldName: "EntityName",
    value:entityFilterFindForm.getValue("find"),
    operator: "iContains"
    }
    ]
    };
    this.creator.entityFilterTree.setCriteria(aCriteria);

    This works great to show the target node and all parents of the target node. Unfortunately this gives the illusion that the target node has no children, is it possible to still offer the ability to expand children of the target node?

    #2
    You could modify the criteria via adding an "or" the would match any node that is a child, or is a child of specific parents that you want to be able to open.

    Comment

    Working...
    X