Results 1 to 2 of 2

Thread: Calls to TreeViewer refresh only work the first time

  1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    63
    Vote Rating
    0
      0  

    Default Calls to TreeViewer refresh only work the first time

    I have an asynch Tree using TreeViewer and TreeContentProvider. I load the tree from the database and then add items via a form. When the call returns from the add item, I call
    viewer.refresh(tree.getSelectionModel());
    viewer.update(tree.getSelectionModel());
    if (!tree.getSelectedItem().isExpanded()){
    tree.getSelectedItem().setExpanded(true);
    }

    The FIRST time the new item is added to the tree and the parent is expanded works great. Subsequent calls and the tree never updates.

  2. #2
    Ext User
    Join Date
    Apr 2008
    Posts
    63
    Vote Rating
    0
      0  

    Default

    Infact if I refresh the application the new items show up in the tree, but any new items do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •