Loren wrote:OK i can load it fine
Great to hear you figured out! As previously stated, we do not answer generic programming questions. So it's much appreciated that you can resolve this issue by yourself.
Loren wrote: now but i have performance issues. I am building the tree view from a datasource and loading the tree I keep getting and IE Meesage saying the "A Script on this page is cause IE to run slwoly." and it take over20-30secs for the tree vew to load is there a way to speed this up?
You will get that when you try to load too many TreeNodes one time. The most effective way to speed it up is to reduce the number of nodes you are loading. The TreeView supports PopulateOnDemand feature to help you to populate one node a time:
http://www.essentialobjects.com/Demo/Default.aspx?path=TreeView\_i1\_i1This also means that you will have to restructure your code so that you no longer populate the whole TreeView on initial load. Also, most people run into trouble when using PopulateOnDemand and dynamic loading together due to the inherited complexity involved in dynamic loading. So you may wish to try this feature out without dynamic loading first. Once you get that going and are ready to tackle dynamic loading, a few more resources are available to you:
1. Our sample project itself use dynamic loading to load each sample, so if you run into trouble, you may wish to take a look of the sample code;
2. The following post will also give you more insight on what to watch out when using dynamic loading:
http://essentialobjects.com/Forum/Default.aspx?g=posts&t=1179#5018It's important to note that these are information available that we hope can be useful for you; They do not mean our support officially cover this issue. Dynamic loading itself is far beyond the scope of our support.
Thanks