PDA

View Full Version : Json array from treepanel



swiji2000
3 Apr 2013, 11:14 PM
Hi,

How to create json array from treepanel?

Thanks

slemmon
5 Apr 2013, 1:52 PM
The method to do that is new to 4.2:
http://docs.sencha.com/ext-js/4-2/#!/api/Ext.data.NodeInterface-method-serialize

swiji2000
9 Apr 2013, 2:18 AM
Hi Thanks ,

how can i implement this? can you please give one example?

Thanks in Advance

slemmon
9 Apr 2013, 8:41 AM
Actually, it looks like there is a bug in the 4.2 code for serialize(). A fix should be in the works now.

For future reference, you should be able to serialize a tree record/node using something like:



treepanel.getRootNode().serialize();