Hello,
This code below is from one of demo code from
TreeList - Forum with External Edit Form
ExpandItemToLevel() is using 50 which seems a random number!!
is there a way to find how many the level a item has to expand??
Thanks!!
case RadTreeList.ExpandCollapseCommandName://if the command is fired for a root item by the LinkButton inside it, all child items should be expandedif ((e.Item as TreeListDataItem).HierarchyIndex.NestedLevel == 0 && e.CommandArgument.ToString() == "ExpandAll") { e.Canceled = true; if (!(e.Item as TreeListDataItem).Expanded) { ForumBoard.ExpandItemToLevel((e.Item as TreeListDataItem), 50);
// 50 is a random number as Level to exand all I assume
// is there a way to find how many level it has to expand?? } else { ForumBoard.CollapseAllItems(); } } EditFormPanel.Visible = false; break