Hi,
I am using the control Infragistics.Win.UltraWinTree.UltraTree to display xml nodes in to the GUI.and using object of the class Infragistics.Win.UltraWinTree.UltraTreeNode to add child nodes and siblings their parent nodes to display into GUI.
I am using object of the class System.xml.XmlDocument to load XML file.
If data(properties) of particular node will be storing into structure array for later point of use. For example : Element properties: Name, Type, MatchCreterion, DataStruct, Mandatory, Return are storing into structure object array. and will use laterEg: <ElementList> <Element> <Name>MSC</Name> <Type>String</Type> <MatchCreterion>Prefix</MatchCreterion> <DataStruct /> <Mandatory>True</Mandatory> <Return>Yes</Return> </Element> <Element> <Name>SME</Name> <Type>String</Type> <MatchCreterion>Prefix</MatchCreterion> <DataStruct /> <Mandatory>True</Mandatory> <Return>Yes</Return> </Element> </ElementList>Using for loop to add child nodes to their parent node. (Creating TreeNode objects and adding into their parent nodes).
Issue is Here:
If I am trying to load 10 MB xml file, it is taking 20 minutes time to load that file and CPU usage 100% for loading that file. After that system is becoming very slow.
Please provide the solution.
Its very important for my application.
Thank you for your time.
RegardsPrathap Reddy U
Hi Mike,
New UltraTreeControl does bot help me to resolve performance issue. Can you please give any idea to resolve my performance issue?
Regards
Prathap
Thank you very much for your reply. I will install trail version and test the same. I will reply back to you if i get any issue while working on it.
Thanks and Regards
Hi Prathap,
I can't be sure without trying it, of course. But the latest version of the tree has some optimizations what make it work better, and also that make BeginUpdate and EndUpdate work better.
What I would recommend is that you try downloading the trial version of NetAdvantage 2009 Volume 2 and test it out to see if it helps before you buy it. Installing a new version will not have any effect on any existing versions you already have installed. I run 5 or 6 different versions simultaneously on my machine.
As per my observation it's the tree that's causing the delay? I tried using BeginUpdate and EndUpdate methods. But No use. We are using Infragistics 5.2. We have no latest version of infragistics. You are saying that latest Hot Fix for the controls will be efficient to form trees. Are you sure latest version solves my problem. If we purchase latest version and if it does not solve my problem then purchase laetset version does not make sense. Please give any idea.
Looping through every element of a 10 MB xml file is probably going to take some time, with or without using the UltraWinTree. are you sure it's the tree that's causing the delay?
The only thing you could do to make the tree a bit faster would be to turn off the painting of the control while it loads. You do this using the BeginUpdate and EndUpdate methods.
Also, make sure you have the latest Hot Fix for the controls. We recently made an update to the tree so that BeginUpdate and EndUpdate will be even more efficient. I'm not sure if that update is in the latest hot fix, but if not, it should be in the next one.