Posted Wed Apr 23, 2008 @ 10:49 AM
function TreeView1_webServiceComplete(sender, eventArgs) { var node = eventArgs.get_node(); if(node) { alert('Completed web service call for node ' + node.get_text()); } else { alert('Completed web service call for top level data.'); } var customData = eventArgs.get_customData(); if(customData) { alert('Web service call returned custom data: ' + customData); } }
BJ
Posted on Wed Apr 23, 2008 @ 10:49 AM
milos
Brian MacKay
Michal Miszczyszyn
sguzik
Hi Milos,
We are using CA treeview control to populate with various nodes, in which few of these nodes do contain few other sub-nodes. So, we are opting for treeviewnode "UseWebService" property by setting "WebService" and "WebServiceMethod" of treeview, to populate Nodes with sub nodes. So, here my question is, can we send any parameters to the "Completed" event from "WebMethod", so that I can control the flow of application at the client side. The reason is, in "WebMethod" we'll verify certain conditions, if those conditions are not met, then we'll redirect the client/user to another page.
Please let me know how can we accoplish this?
Kindly revert, If you need more explanation.
Thank you
Praneeth