473,966 Members | 20,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp.net 2.0 treeview is slow

Now we have to load the whole company's organizational relationships into one
TreeView which has at lest 6~7 layer and including 300~400 nodes.In every
node,there is a checkbox.

So we need following cascade selected effect:

1. Every time we select one node,all his child nodes' state will be changed
into selected automatically(i f this node has child node).

2 . Every time we select one node,his father nodes' state will be be changed
into selected automatically.

Now we load all these nodes into TreeView in PageLoad event.And implement
the cascade selected effect above by using TreeNodeCheckCh anged event.In the
TreeNodeCheckCh anged event,we will be able to find the selected node,and then
we can find his father node and son nodes to change their state.

But now we find out that because of the number of the nodes is so big that
the treeview is very slow to loaded all the nodes.

How to speed the treeview performance?

Thanks,
-Billy Zhang

How can we promote this TreeView's performance.

Jun 27 '08 #1
2 1784
Thank you!
Let me check this.

-Billy
Jun 27 '08 #2
You are welcome. I'm glad to help you.

If you have any other questions, please don't hesitate to let me know.

Have a great day!

Regards,
Jialiang Ge (ji****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== ====
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=============== =============== =============== ====

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1776
by: orenwantsyou | last post by:
hi all, i have a c# winform application and a web appliaction. in the winform app. i use a treeview control, and in the web app. i use an htc control. the problem is that the winform application is loading very slow(the tree), whereas the web application's tree is loading quicker. both applications usews the same functions when it creates the tree, anyone knows why????
4
2257
by: Aidan Marcuss | last post by:
I am seeing significant performance problems with the TreeView (from the Microsoft.Web.UI.WebControls namespace) when trying to data bind it on the server side. I set the TreeNodeSrc property and the TreeNodeTypeSrc property and then call the DataBind() method. I am setting each of these properties to a string of XML. As the payload grows, this becomes terribly slow. This is all server side. I've found that this may have to do with...
17
9134
by: Spam Trap | last post by:
I am upgrading from VB6 where I had access to a treeview NodeClick event (see below)... but now VB.NET does not have this any more. Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node) ' VB6 code here. End Sub The VB.NET way seems to be inspect the SelectedNode property within the TreeView's Click event... however this is extreamly buggy, and actually fails under some very simple circumstances, telling me that one node is
8
4650
by: Shawn B. | last post by:
Greetings, I'm creating a little program that acts as a glorified Registry explorer. The TreeView doesn't allow you to show a plus sign unless a node has child nodes, so I need to determine whether a registry key has subkeys and add a dummy childnode. The way I'm doing this is to populate the child nodes as the parent is expanded. However, there are some serious performance implications. First, when I pouplate the HKEY_CLASSES_ROOT,...
0
1105
by: kenny | last post by:
Sanity Check please: Trying to resolve the following condition: Website initial page load is extremly slow (50 secs) when accessing site through CSS (load balancer) with http://alias. Code works perfectly (3.5 sec load) when pointing browser directly to server http://servername/website and not through CSS Of course the network guys say it's the code. So I'm looking into trying to prove them wrong.
4
2331
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory as the sample. I have trouble translating those samples to working with data coming from my database, so I am hoping that someone could show me a sample of code that builds a tree from say a dataset. Many controls you can bind to a datasource,...
0
3426
by: drop | last post by:
Hi, I am using a Treeview and I'd like to know what is the best way to refresh the children of a specific node in the treeview. I already do that using full postback, but this sends back the entire tree and it's very slow. Basically, I'd like to be able to redo a client side callback PopulateOnDemand that would reload the childrens of a node. That way, I would reduce the overhead since I would refresh only the part of the tree I need...
2
5254
by: =?Utf-8?B?QU5V?= | last post by:
I have a tree view which i load completely at the time of my webpage load. When i click on the + signs of the parent nodes, it expands to show all of its children. Similarly, when i click on the node itself, it expands to show its children. It works fine but it is very slow as compared to clicking on + sign to load children. No other event or process runs in the background when i click on the node or the + sign of the folder image. In my...
1
1425
by: Chris | last post by:
Hi Folks- I'm using a treeview to display a table of contents for a book. There are chapters, subchapters, sub-sub chapters, etc. Since there are a few levels, I've set up threads to handle chunks of the list, and this works well to get around the whole nested loop (foreach) problem when building a treeview. My problem is, for books with large amounts of chapters (one book has 71, for example), the page load time is horrendous. I've...
0
10315
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11785
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11368
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11517
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6506
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.