View Full Version : How to get data after setting XML as dataUrl of tree

20 Dec 2011, 5:42 AM
Hello All,

I am newbie to Ext JS. I am working on Ext JS 3.3.
I have set XML as dataUrl of the tree with checkbox renderer.
On checkbox selection, I am able to get name of the node but I am not able get data node.

Consider following XML.
<author name="abc" language="english" >
<book name="b1" type="fiction" year="2010"/>
<book name="b2" type="non-fiction" year="2011"/>

In above example, I am able to get name of the book after checkbox selection in event listener. But I want to retrieve other attributes of the node book like type and year inside event listener.

Thanks in Advance,

20 Dec 2011, 5:45 AM
If you listen to the checkchange event, the first argument is the node. The node as a property called attributes where the values should be.

20 Dec 2011, 6:06 AM
Thanks a lot mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens)

I am getting data of node from property attributes (node.attributes).