Home - Forums-.NET - FlyTreeView (ASP.NET) - Large Amounts of Data in FlyTreeView 2.0 load VERY slow.

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Large Amounts of Data in FlyTreeView 2.0 load VERY slow.
Link Posted: 30-Aug-2006 03:41
Once I have the data loaded, stepping through the code shows that even after the data has been loaded, there is quite a bit of time prior to expanding the list.

Also, in the status bar, I see the following text:

(2480 items remaining) Downloading picture ......  You know the rest.

This happens when I expand OR COLLAPSE the menu... I've turned off all the images I can find. I don't show lines, I've set all the values that I can to $none for the image, and I'm keeping the default imageset. I've looked at the sample project shipped with the product and am not sure where mine differs from the examples except for image set (not use winXP) and amount of data.

The more data I throw into it the longer it takes to load, but the data itself is loaded within a couple of seconds...

My questions:

How can I speed up the control to match the data?
How can I disable the image load?
Link Posted: 31-Aug-2006 15:27
The problem is actually in that IE tries to load the same image many-many times and we have to deal with this. Sometimes it occurs when IE cache is full and it cannot clear it. Sometimes there're some other reasons.

Also, do you set the treeview to draw lines connecting +/- images?
This may also be a reason. Set the FlyTreeView.DrawLines and try again.
Link Posted: 01-Sep-2006 06:24
Draw Lines is already set to false. (This is what really threw me for a loop)

There are no images being drawn, yet it's downloading one for each entry.

The samples that were sent along with the product do not perform the same way. I've scoured the sample and do not see what I'm missing.
Link Posted: 01-Sep-2006 08:27
Probably in this case, a good idea will be to open samples project and make the same changes in it step by step while testing each time. This is the only thing that comes to my mind now.
Link Posted: 02-Sep-2006 09:52
Also, you can try to use static
string[] FlyTreeView.GetResourceUrlsForImageSet(imageset, Page.ClientScript);

The static method returns an array of urls for imageset.

To preload imageset, you should probably create an array of images using Javascript.
Or create a set of IMG tags like in TreeView.aspx:
    
        
                            width: 1px; height: 1px\" />
        
    


The set of tags should be placed before the treeview. Or even on the other page somewhere on the route of user.
Link Posted: 10-Sep-2006 08:50
Also, another very important thing:

Use the setting in web.config.
This removes no-cache debug header from being rendered for built-in resources of the treeview control.
Link Posted: 25-Sep-2006 01:07
hi.
as you told flytreeview is very fast on mozilla-firefox and opera. but IE is very slow.

to expand with 50 child nodes takes 8 seconds in IE6.0.  But it takes only 1 second in mozilla-firefox and opera.

i tried your advice, repeater solution.

string[] strUrlList = FlyTreeView.GetResourceUrlsForImageSet(FlyTreeViewImageSet.Classic, Page.ClientScript);


i tried Classic and Default image sets. they didn't return any url so i could not display any image on repeater. is it normal to return any URL?
Link Posted: 25-Sep-2006 01:42
See my last post here. This is very important for IE. It stops caching images when Web.config has you should change it to
Link Posted: 25-Sep-2006 19:40
unfortunately setting debug=false didn't fix the problem. I want to test if you have any more advice.
Link Posted: 26-Sep-2006 07:57
Does your browser cache treeview images when you open the demo from
http://www.9rays.net/asp.net_2/treeview/Demo_Office2003.aspx (and other demos?