TreeNode change title

Hi,

I am working on a TreeGrid with TreeNodes.
I want to change the title of a node when a certain event occurs.
In several places, I want to, when clicking somewhere, or whatever, be able to update the Title (displayed text) of a node.
On my handler I do:

TreeNode node = (TreeNode) treeGrid.getSelectedRecord();
node.setTitle("new name");

But the title stays the same.
I am able to update the title by closing then opening the node (which is invisible to the client), but I don’t want that because sometimes I call an action when a node is opened.

[UPDATE] I found the method: TreeGrid.refreshRow(int) that can be called to update the modified node or record.

Thanks anyway!

Thx for the update

Thx pulse. Even i was using close and open to see the updated node title. I’ll start using refreshRow now.

Hi,
I have the same problem, but i cannot find how to retrieve the index of the current TreeNode
how to get the index of Row? How I can modify other attributes and attach it to the tree.

Thx a lot for any suggestion.