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




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com