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; } }
Hello Pete,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. Using the code example that you provided, I created two samples. The first used a regular data source. One used Entity Framework with the free Northwind database which you can find here: http://northwinddatabase.codeplex.com/. I could not reproduce this issue with either of them.
I have attached the sample projects I used to test this. Please test this project on your PC; whether or not they work correctly may help indicate the nature of this problem.
If the projects do not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 14.1.20141.2027 in Infragistics for WPF 2014 Volume 1.
If the projects do show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if the sample projects are not an accurate demonstration of what you're trying to do, please feel free to modify them and send them back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support
I can only attach one item per forum post. The other project is attached to this post.