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:
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!
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:
Code:
TreeNode node = (TreeNode) treeGrid.getSelectedRecord(); node.setTitle("new name");
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!
Comment