Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1855
xamdatatree view list is loading multiple times in control
posted

when i call the below code. it is not scrolling to a selected value. It is also putting elements from the list in the tree view twice which makes it unreadable

foreach (var node in DataTree.Nodes)
{
if (((PatientNameId) node.Data).EntityGuid == itemGuid)
{
node.IsSelected = true;
node.IsExpanded = true;
node.IsActive = true;
try
{
DataTree.ScrollNodeIntoView(node);
}
catch
{

}
break;
}
}