[CLOSED] [1.0] Update Lazy loaded TreeGrid row

  1. #1

    [CLOSED] [1.0] Update Lazy loaded TreeGrid row

    Hi,

    I see in the Ext.Net examples that the NodeLoad event reloads the children of a node, but is there a way to re-load/update the current columns of a node? I can successfully use setText of a node, but it only updates the first column.

    Is there something similar to the gridpanels getView().refresh() method?
    Is there a way to update other columns of the current row in the NodeLoad event or from other directevents like a button click event?
    Is there a way to change the icon of a node? (change from leaf to folder)? (For example, when dynamically adding nodes to a tree.)

    Thanks!
  2. #2

    RE: [CLOSED] [1.0] Update Lazy loaded TreeGrid row

    Hi,

    Unfortunatelly, TreeGrid doesn't support column values updating. The single way is reload parent node


    If parent node is AsyncTreeNode then call reload method
    theNodeWhichNeedToUpdate.parentNode.reload()

    Update icon
     theNodeWhichNeedToUpdate.ui.setIconClass('iconCls');
  3. #3

    RE: [CLOSED] [1.0] Update Lazy loaded TreeGrid row

    Thanks. That was the workaround we were using to refresh the column values. I was thinking about trying to use the fly method or something, but it would be too kludge. To re-expand nodes, I think I can keep track of what has been expanded, and re-expand them after reload. For the non-async root I used the other workaround found in another post using removeChildren() and initChildren().

    With the workarounds, I guess we don't need to use setIconClass(), but it's good to know, in case extjs is updated to refresh column values.

    Thanks for your help!

Similar Threads

  1. Replies: 0
    Last Post: Oct 19, 2010, 7:39 AM
  2. [CLOSED] TreeGrid update
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 23, 2010, 5:21 PM
  3. Update TreeGrid/Panel during AjaxEvents
    By fire3san in forum 1.x Help
    Replies: 1
    Last Post: Jul 13, 2010, 9:50 AM
  4. [CLOSED] [1.0] TreeGrid, lazy load, and RootVisible="true"
    By pasion in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 26, 2010, 6:56 PM
  5. Lazy Control Update
    By firebank in forum 1.x Help
    Replies: 0
    Last Post: Apr 18, 2010, 2:53 PM

Posting Permissions