Announcement

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

    Dynamic TreeGrid

    Hello folks,

    Do you know if there is a simple way to create a TreeGrid that dynamicaly loads the data as long as you browse the tree ?

    I may call a server method on each onFolderOpened event, but this leads to a graphical bug : the new data is correctly loaded but I need to click twice on the node in order to expand it.

    Is there a better solution, for example by using a server datasource ?

    Any help will be appreciated,
    Thanks a lot.

    Antoine Larcher

    #2
    Hi,

    Check this example out:
    http://www.smartclient.com/smartgwt/showcase/#featured_tree_grid

    But pay attention to the line
    Code:
     treeGrid.setLoadDataOnDemand(false);
    You should change it to "true" to have one request per open "folder". Otherwise, you should retrieve all data in one request.

    Hope this helps!

    Comment


      #3
      Thanks a lot, it works !

      Comment


        #4
        Hi,

        I would appreciate if you can point me to the source code of the same.
        I couldn't find it in the zip file I downloaded (Smartgwt 2.5 nightly build).

        Thx,
        _Satish

        Comment

        Working...
        X