Hi there,
I am using RadTreeView control with IsVirtualization=true. and have thounds of data in tree.
Now I want to search tree node dynamically.
It is working find if the node being searched is visible in scroll bar, but if the node is at the bottom of the scrollbar and not visible within the hight of scroll bar, I am not able to find it through code as below:
RadTreeViewItem tvRootItem=null;
foreach (RadTreeViewItem tvItemChild in radTreeView.ChildrenOfType<RadTreeViewItem>())
{
if ((tvItemChild.Item as ItemDto).Id.Equals(modelView.ActiveItem.Id))
{
tvRootItem = tvItemChild;
break;
}
}
It is working fine it I set IsVirtualization=false, but in that case I am facing performance issue.
Please help me to resolve with issue.
I am using RadTreeView control with IsVirtualization=true. and have thounds of data in tree.
Now I want to search tree node dynamically.
It is working find if the node being searched is visible in scroll bar, but if the node is at the bottom of the scrollbar and not visible within the hight of scroll bar, I am not able to find it through code as below:
RadTreeViewItem tvRootItem=null;
foreach (RadTreeViewItem tvItemChild in radTreeView.ChildrenOfType<RadTreeViewItem>())
{
if ((tvItemChild.Item as ItemDto).Id.Equals(modelView.ActiveItem.Id))
{
tvRootItem = tvItemChild;
break;
}
}
It is working fine it I set IsVirtualization=false, but in that case I am facing performance issue.
Please help me to resolve with issue.