Hi,
I have a function that iterates through all the nodes and places the checked nodes into a list. The problem is that it will miss any child nodes of collapsed parents because the parents are created on the server side with Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack.
I believe what is happening is that because these nodes are defined requiring a callback, that their children are not written out to the browser until that AJAX callback is fired. Because of this, they do not come up in the tree.get_allNodes call I use to iterate through all the nodes at the time I use it because the parent nodes in question have not been expanded (i.e., the child nodes in question have not been added to the document).
Forcing all the nodes to expand prior to checking for checked nodes works, but is unwieldy.
Does anyone have any suggestions or ideas about how I might work around this? I'm not that familiar with using this control, so I thought maybe a more experienced user might be able to guide me in the right direction.
Any help appreciated.
Thanks,
Ted
I have a function that iterates through all the nodes and places the checked nodes into a list. The problem is that it will miss any child nodes of collapsed parents because the parents are created on the server side with Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack.
I believe what is happening is that because these nodes are defined requiring a callback, that their children are not written out to the browser until that AJAX callback is fired. Because of this, they do not come up in the tree.get_allNodes call I use to iterate through all the nodes at the time I use it because the parent nodes in question have not been expanded (i.e., the child nodes in question have not been added to the document).
Forcing all the nodes to expand prior to checking for checked nodes works, but is unwieldy.
Does anyone have any suggestions or ideas about how I might work around this? I'm not that familiar with using this control, so I thought maybe a more experienced user might be able to guide me in the right direction.
Any help appreciated.
Thanks,
Ted