You can do the following on ItemCommand, as long as you use EditForms/PopUp editing :
? parentIndex =
sender, TreeListCommandEventArgs e)
(e.CommandName == RadTreeList.PerformInsertCommandName)
TreeListDataItem item = (e.Item
parentIndex = item.DataItemIndex;
sender, EventArgs e)
TreeListDataItem parent = RadTreeList1.Items[(
RadTreeList1.ExpandItemToLevel(parent, parent.HierarchyIndex.NestedLevel + 1);
For InPlace, cast e.Item directly to TreeListDataItem.
As for selecting the inserted child, as the DataKeyValue of the inserted item is usually not known upon insertion, you would need to recognize the item in PreRender by some other value that is available during the insert and select it.
All the best,
the Telerik team
Sharpen your .NET Ninja skills
! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>