Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Web Treeview Control is too slow 1

Status
Not open for further replies.

enak

Programmer
Jul 2, 2002
412
US
I need some help on a treeview control.

I have an application that uses iframes. In the left frame the treeview is loaded. The treeview is loaded from a SQL database and has over 8600 nodes that I need to add to the treeview. Because of the perfomance of the treeview with that many nodes I have elected to not load all of the nodes at once.

I load 26 folders, A - Z. When I click on one of the folders the nodes for that folder are loaded and the folder is expanded. When i click on one of the nodes then a page is loaded in the right side of the frame. That is what should happen.

I have set the property AutoPostBack=True in order to get the folder to expand and display the data associated with the folder. This works fine except when I try to expand a folder that I had to scroll to get to. In this case nothing happens.

When I click on one of the nodes to display the data related to that node another trip is made to the server and then nothing happens. If I click on the same node a second time then the page with the data is displayed. In order to display the data I MUST click twice in the selected node. Why????

I know that the Treeview control from Microsoft has a lot of problems but I have seen posts here talking about how to do what I am trying to do but I need details, which I have not seen.

Can anyone please, please help????

Thanks,
enak
 
Hi,
You may want to turn SaveViewState off to improve performance. To trace why you need to click twice, I suggests you do a debug, step-by-step to figure out what code executes... maybe it is a logic problem? sounds like one to me (no pun intended). cheers.

regards
- Joseph
================


~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top