RadtreeView.Itemsource = sourceList1;
foreache ( var item in sourceList1)
{
if ( sourceList2.Where(o=>o.ID==item.ID).Count()>0)
{
sourceList3.Add(item);
}
}
My question is how to find the RadtreeViewItem in RadtreeView from sourceList3.
Thanks a lot
Zi
1 Answer, 1 is accepted
0
Petar Mladenov
Telerik team
answered on 10 Sep 2012, 06:42 AM
Hello Zibing,
You can use the RadTreeView.ItemContainerGenerator.ContainerFromItem method. However, this may be expensive. We highly suggest you to introduce a Path property in your business items and use the GetItemByPath method described here. Please let us know if you need further assistance.