.NETGURU
Poor TreeView Performance Problems
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngwebcontrols' list.


Julian Voelcker
I have a TreeView configured to dynamically build up as people click to
expand nodes.

The TreeView code is as follows:-

<iewc:treeview id="TreeView1" runat="server"
treenodesrc="http://www.charityskills.org/TreeView/buildtree.aspx";
autopostback="True" />

The buildtree.aspx returns the treenode data in XML format which you
can see for yourself.

The problems I have are as follows:-

1. Is there any way to get it to retrieve more nodes without posting
back or loading all the menu data at once?
2. I quite often find that the menu is very slow to display and sort of
hangs during loading - have any of you experienced this?
3. The viewstate field seems to massive and grows as you work down a
tree - is there any way to avoid this?

You can see a sample of the tree at
http://www.charityskills.org/TreeView/tree.aspx. Usually it sits
within a frameset elsewhere on the site.

I would appreciate your help on this.

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

Reply to this message...
 
    
James Avery
You could definitely load all the nodes at the beginning, how many total
nodes are there? .Then a postback would not be needed whenever someone
clicked on the link.(unless they had a down-level browser)

-----Original Message-----
From: Julian Voelcker [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 7:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Poor TreeView Performance Problems

I have a TreeView configured to dynamically build up as people click to
expand nodes.

The TreeView code is as follows:-

<iewc:treeview id="TreeView1" runat="server"
treenodesrc="http://www.charityskills.org/TreeView/buildtree.aspx";
autopostback="True" />

The buildtree.aspx returns the treenode data in XML format which you
can see for yourself.

The problems I have are as follows:-

1. Is there any way to get it to retrieve more nodes without posting
back or loading all the menu data at once?
2. I quite often find that the menu is very slow to display and sort of
hangs during loading - have any of you experienced this?
3. The viewstate field seems to massive and grows as you work down a
tree - is there any way to avoid this?

You can see a sample of the tree at
http://www.charityskills.org/TreeView/tree.aspx. Usually it sits
within a frameset elsewhere on the site.

I would appreciate your help on this.

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
Standefer, Robert E
How would I do this (load all the nodes at the beginning)?

Robert Standefer
Account Architect
EDS - Sprint Carrier Transport
MS H1-5A-24
5400 Legacy Dr
Plano, TX 75024

phone: +01-972-797-8821
mailto:Click here to reveal e-mail address
http://www.eds.com

-----Original Message-----
From: James Avery [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 9:15 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Poor TreeView Performance Problems

You could definitely load all the nodes at the beginning, how many total
nodes are there? .Then a postback would not be needed whenever someone
clicked on the link.(unless they had a down-level browser)

-----Original Message-----
From: Julian Voelcker [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 7:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Poor TreeView Performance Problems

I have a TreeView configured to dynamically build up as people click to
expand nodes.

The TreeView code is as follows:-

<iewc:treeview id="TreeView1" runat="server"
treenodesrc="http://www.charityskills.org/TreeView/buildtree.aspx";
autopostback="True" />

The buildtree.aspx returns the treenode data in XML format which you
can see for yourself.

The problems I have are as follows:-

1. Is there any way to get it to retrieve more nodes without posting
back or loading all the menu data at once?
2. I quite often find that the menu is very slow to display and sort of
hangs during loading - have any of you experienced this?
3. The viewstate field seems to massive and grows as you work down a
tree - is there any way to avoid this?

You can see a sample of the tree at
http://www.charityskills.org/TreeView/tree.aspx. Usually it sits
within a frameset elsewhere on the site.

I would appreciate your help on this.

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
James Avery
Just create an xml file that has all the nodes then bind to that file.
Make sure autopostback is set to false.

-----Original Message-----
From: Standefer, Robert E [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 10:28 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Poor TreeView Performance Problems

How would I do this (load all the nodes at the beginning)?

Robert Standefer
Account Architect
EDS - Sprint Carrier Transport
MS H1-5A-24
5400 Legacy Dr
Plano, TX 75024

phone: +01-972-797-8821
mailto:Click here to reveal e-mail address
http://www.eds.com

-----Original Message-----
From: James Avery [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 9:15 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] RE: Poor TreeView Performance Problems

You could definitely load all the nodes at the beginning, how many total
nodes are there? .Then a postback would not be needed whenever someone
clicked on the link.(unless they had a down-level browser)

-----Original Message-----
From: Julian Voelcker [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 7:16 AM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Poor TreeView Performance Problems

I have a TreeView configured to dynamically build up as people click to
expand nodes.

The TreeView code is as follows:-

<iewc:treeview id="TreeView1" runat="server"
treenodesrc="http://www.charityskills.org/TreeView/buildtree.aspx";
autopostback="True" />

The buildtree.aspx returns the treenode data in XML format which you
can see for yourself.

The problems I have are as follows:-

1. Is there any way to get it to retrieve more nodes without posting
back or loading all the menu data at once?
2. I quite often find that the menu is very slow to display and sort of
hangs during loading - have any of you experienced this?
3. The viewstate field seems to massive and grows as you work down a
tree - is there any way to avoid this?

You can see a sample of the tree at
http://www.charityskills.org/TreeView/tree.aspx. Usually it sits
within a frameset elsewhere on the site.

I would appreciate your help on this.

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
    
Julian Voelcker
I have several hundred nodes so loading all at once is not an option.

Do you have any other ideas or have you experienced any performance
problems at your end?

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

Reply to this message...
 
    
James Avery
I usually have under 40 nodes so I load them all at the beginning with
no problems, and have experienced no performance issues. Have tried
loading them all just to see what the performance was like?

-----Original Message-----
From: Julian Voelcker [mailto:Click here to reveal e-mail address]
Sent: Wednesday, May 08, 2002 6:17 PM
To: aspngwebcontrols
Subject: [aspngwebcontrols] Re: Poor TreeView Performance Problems

I have several hundred nodes so loading all at once is not an option.

Do you have any other ideas or have you experienced any performance
problems at your end?

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom

| [aspngwebcontrols] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngwebcontrols.asp = JOIN/QUIT

Reply to this message...
 
 
System.Windows.Forms.TreeView




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification