Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by RC on Aug 09, 2009 11:51
open dhtmlx forum
DHTMLXTree, dataprocessor and UserData

WhenI add a node to a tree using the insertNewChild function it triggers a call to my dataprocessor trigger function. How do I pass Userdata back from the server side dataprocessor call back to the client?
Answer posted by Alex (support) on Aug 10, 2009 03:37

Hello, 

you can use the approach described in the article http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Dataprocesor_usage.html#io2c0 (it is actual for tree also):

<data>
<action type="insert" sid="..." tid="..">Details</action>
</data>

dp.defineAction("insert",my_action)
function my_action(node){
alert(node.firstChild.data); // Details
return true;
}