Announcement

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

    TreeGrid record access issue

    I'm working with lazy loaded TreeGrid (loadDataOnDemand=false) and I try to select a specific node after data are fetched.
    The problem is that when I access the Tree from TreeGrid, it does not contain any data.

    gridPackages.getData().getAllNodes().length is 0.
    i want to select first record after fetching data in TreeGrid.

    1. the SmartGWT 2.3 LGPL version and all browser version(s) involved;

    #2
    Data from DS is loaded asynchronously, try doing something like this:
    Code:
    final TreeGrid tg;
    tg.addDataArrivedHandler(new DataArrivedHandler() {
        @Override
        public void onDataArrived(DataArrivedEvent event) {
        Record[] recs = tg.getTree().getAllNodes();
    }
    });
    regards,
    Andrius J.
    Last edited by phuqit; 21 Jan 2011, 06:45.

    Comment

    Working...
    X