PDA

View Full Version : Edit tree node properties



andrey_87
14 Dec 2010, 7:50 AM
Hi, I'm doing baby steps in ExtJs and it is really great. But I am stuck trying implement the following:

I have a tree with custom data in form of key/value pairs stored in each tree node's attributes. I wanna add ability to edit these properties in a grid for example. Let's say user clicks on Edit Properties in the node context menu and I show editable grid with all properties.

But I don't understand how to synchronize data between grid and the current tree node. For example when user adds new property or edits existing how can I save changes back to tree node attributes?

Any suggestion would be greatly appreciably.