1. #1
    Ext User
    Join Date
    Jul 2008
    Location
    France - Lille
    Posts
    6
    Vote Rating
    0
    Zorn is on a distinguished road

      0  

    Default How to update a Tree when I change my Models

    How to update a Tree when I change my Models


    Hi,
    I have something like that :

    Code:
    ArrayList list = "list of Models";
    Tree tree = new Tree();
    TreeStore treeStore = new TreeStore();
    TreeBinder treeBinder = new TreeBinder(tree, store);
    store.add(list, true);
    ...
    ...
    ...
    model.set("name", "a new name");
    and I want my tree to be updated.

    How can I do ?
    Thanks.

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    treeStore.getRecord(model).set("name", "a new name");

  3. #3
    Ext User
    Join Date
    Jul 2008
    Location
    France - Lille
    Posts
    6
    Vote Rating
    0
    Zorn is on a distinguished road

      0  

    Default


    Ok,

    treeStore.getRecord(model).set("name", "a new name");
    treeStore.commitChanges();

    works fine.
    Thank you

Thread Participants: 1