I have a project that has 2 webdatatree's, when the page loads only one is active. When you click on a node it should load data into the other one. I have binding setup in the code behind and when I use the debugger it is binding the last loaded dataset into the first webdatatree and errors because that dataset should be loaded into the second webdatatree. Can you have 2 webdatatrees on one page and bind them in code???
Thanks
This is what I do, and it doesn't work!
The first bind for the first tree is in the Page_Load, it then moves to the Node_Click event and binds the second webdatatree, it then moves to the template area on the aspx page and throws an error because it is trying to bind the first datatree with the second's data...
Hello normalit,
Thank you for posting on Infragistics forum.
If you want to implement the functionality described you can handle the tree “NodeClick” Server-Side event - http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Infragistics4.Web.v11.2~Infragistics.Web.UI.NavigationControls.WebDataTree~NodeClick_EV.html - and set “AutoPostBackFlags” for node click to “On”.
Then you can enable the second tree, assign the new data source to it and call “DataBind()” method.
Test this approach and let me know what the results are.