Announcement

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

    TreeGrid changing setLoadDataOnDemand()

    Hi,

    I've got a TreeGrid with DataSource loading data from server and
    setLoadDataOnDemand(true).
    It's working fine but in some cases users want automatic expand all feature. Thing is when setLoadDataOnDemand(true) expanding all rows throws a fetch for every tree folder. I've done like this:
    Code:
    Tree tree = treeGrid.getTree();
    tree.openAll();
    When I initially set setLoadDataOnDemand(false) it fetches all rows much faster with only few requests and automatically expands all folders.

    The question is can I change this property after component was created.
    I've tried after this set to fetchData() or invalidateCache() but with no success.

    Thanks for any help.
    Best regards
Working...
X