how to add additional parameters when the tree node expand?
how to add additional parameters when the tree node expand?
hi there:
Recently i am using the ext 4.0.7, and i know that when a node expand, the 'node' param will be send to the server.
now my question is that can i pass addtional parameters not only 'node' but also other properties of the node?
for example : a json of my tree node is : {"id" : 1, "text" : "node1", "url" : "http://www.balala.com"}, when this node expande, can i pass parameters like : node=1&url=http://www.balala.com
thx for ur help
thanks a lot! I finaly figure it out with ur advise.
Ext.tree.Panel has a event named beforeload and will pass a argument named 'operation' into the callback function.
In this argument, it has a property named 'params', witch include the parameters will pass to the server.
and it has another property named 'node', witch is the tree node we just clicked.
what we have to do is find the parameters from node and set them into the params property, done!