Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > TreeView responding very slow...

Reply
Thread Tools

TreeView responding very slow...

 
 
hkhatri@nexgenix.com
Guest
Posts: n/a
 
      10-30-2003
Hi all,
I have around 1500 records under a node of a TreeView
control. When the node in clicked, it takes a lot of time
to expand and display child nodes.. This is becoming a
performance issue for my application.

1. I do not have any images on my TreeView..
2. Populating treeview from client side "onexpand" event
takes more or less same time.

Is there a way I a can expedite this..???

Thanks in advance.
Hitesh
 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      10-30-2003
Basically, no. The treeview isn't designed to hold that much data. Every
post will cause problems until the application crashes. You need to limit
the number of nodes beind displayed to around 30 - 40 otherwise use another
control

--


-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"(E-Mail Removed)" <(E-Mail Removed)> wrote in
message news:008101c39e9c$7c003120$(E-Mail Removed)...
> Hi all,
> I have around 1500 records under a node of a TreeView
> control. When the node in clicked, it takes a lot of time
> to expand and display child nodes.. This is becoming a
> performance issue for my application.
>
> 1. I do not have any images on my TreeView..
> 2. Populating treeview from client side "onexpand" event
> takes more or less same time.
>
> Is there a way I a can expedite this..???
>
> Thanks in advance.
> Hitesh



 
Reply With Quote
 
 
 
 
Adam Carden
Guest
Posts: n/a
 
      10-30-2003


That is no in fact the problem, I also had the same problem and went
looking for answers and found it.

The crux is this, the .htc control which comprises the treeview uses
javascript to load the images. IE would normally load 20 of the same
image once, however the tree view loads it (gets it from the server) for
each time it is declared including the node lines. So if you have 40
nodes with will try to download 120 images from the webserver.


If your IE (Tool/Internet Options) check for newer versions of stored
pages is set to every visit to the page IE will do what the treeview
wants and load those images roughly 140 times which causes IE to crash.

If you change your chache setting to automatically this does not happen
your treeview should work with at least 200 nodes (the amount I am
currently running)

The problem is you do not know what your users cache settings and nor
can you change them.

The only answer would be to modify the treeviews .htc behavior to
preload the image and make all images reference it.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very very very basic question Peter C Programming 14 02-14-2005 09:46 AM
very very very long integer shanx__=|;- C Programming 19 10-19-2004 03:55 PM
very very very long integer Abhishek Jha C Programming 4 10-17-2004 08:19 AM
Quick Book file access very very very slow Thomas Reed Computer Support 7 04-09-2004 08:09 PM
very Very VERY dumb Question About The new Set( ) 's Raymond Arthur St. Marie II of III Python 4 07-27-2003 12:09 AM



Advertisments