In the afterSelect
event I want to expand a treeNode
to get its children. I have tried the functions expand()
and expandAll()
but nothing happens. I am using c# with syncfusion.
The event:
void tvNavigation_AfterSelect(object sender, EventArgs e)
{
var selNode = mFP.TreeViewPresenter.SelectedNode.Text;
if (treeViewElements.Count > 0)
{
foreach (TreeNodeAdv tna in treeViewElements)
{
if (selNode == tna.Text)
{
tna.ExpandAll(); //does not expand
var expNodes = (ArrayList)tna.Nodes.Clone();
subTreeViewElements = expNodes.Cast<TreeNodeAdv>().ToList();
break;
}
}
}
}
Is this a bug of syncfusion?