I have a scenario where I have two web data trees. I can drag from one to add to the other and I have a button on the 2nd that I can press to remove nodes client-side from. These nodes represent database data and changes to the tree reflect needed changes to the underlying database. My issue is that the server-side event handlers seem lacking in information about the events themselves. For example, nodeadded and noderemoved server side events do not seem to contain any relevant information about the node the was removed or added. Not the key, value, index or otherwise from what I can see. Your server side documentation for the web datatree only mentions the DataTreeNodeRangeEventArgs argument which doesn't seem to help. Where can I find more detailed information about newly added or removed data tree nodes in the server side event handlers or is that not possible?
Hello Nhutchinson,
You can get the deleted node key using the code below:
protected void WebDataTree1_NodeRemoved(object sender, Infragistics.Web.UI.NavigationControls.DataTreeNodeRangeEventArgs e) { DataTreeNode node = (DataTreeNode)e.Nodes[0]; String removerdkety = node.Key.ToString(); }
{ DataTreeNode node = (DataTreeNode)e.Nodes[0];
String removerdkety = node.Key.ToString(); }
Please let me know if you have any further questions regarding this matter.