After populating a tree control using an on-demand method and clicking a submit button, the Nodes and CheckedNodes collections are empty. I am not re-populating the tree control in Page_Load if it is a postback. A similar post mentioned putting the tree control setup in Page_Init, but I'm assuming the control doesn't yet exist in Page_Init because no data appears when I use this approach.
Basically, in Page_Load() I have some code that reads:
if (IsPostBack)
{
System.Collections.Generic.IList<RadTreeNode> nodes = TreeView1.CheckedNodes;
foreach (RadTreeNode node in nodes)
...
}
The CheckedNodes collection is always empty. What am I doing wrong?
Basically, in Page_Load() I have some code that reads:
if (IsPostBack)
{
System.Collections.Generic.IList<RadTreeNode> nodes = TreeView1.CheckedNodes;
foreach (RadTreeNode node in nodes)
...
}
The CheckedNodes collection is always empty. What am I doing wrong?