We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Collapsing of the node with multiple nested nodes is slow

Thread ID:





118728 Apr 4,2015 09:13 PM UTC Apr 7,2015 01:11 PM UTC WinForms 3
Tags: TreeViewAdv
Sergei Leschinksy
Asked On April 4, 2015 09:13 PM UTC

Hi, I have I TreeViewAdv control with ~5 thousands nodes and 6 levels of nesting. I also have a a quick search functionality, so that when user types a search string in TextBox, I hide the root node, and dynamically populate another node with search result. When user clears the textbox I remove dynamically added node and display original node. I hide the TreeNodeAdv by setting 2 properties node.Expanded = false and Node.Height = 0 (I found the approach somewhere in the forum).

Now the issue that bothers me: it takes ~1 sec to collapse the root node (Node.Expanded = false line), which makes the search functionality unresponsive. Is there a way to reduce this delay? I already tried changing TreeViewAdv.RecalculateExpansion and TreeViewAdv.SuspendExpandRecalculate properties without significant difference. I also make all the manipulations with nodes within BeginUpdate / EndUpdate calls.


Senthil Kumaran Rajan [Syncfusion]
Replied On April 6, 2015 01:01 PM UTC

Hi Sergei,

Thank you for using Syncfusion products.

As TreeViewAdv, renderers more number of nodes while Expanding/Collapsing the parent node this time delay occurs. Hence as this time span is needed to render thousand number of nodes, delay can’t be decrease/reduced during Expanding/Collapsing the nodes.

Please let us know if you need further assistance.


Sergei Leschinksy
Replied On April 6, 2015 01:21 PM UTC

Thanks for the answer. I can hardly buy the version about rendering as the delay takes place during collapsing not expanding. And only immediate children of the root node are visible (just 10 nodes). More likely some poorly optimized events or layout calculations for nested nodes down the tree. But so be it, I can think of a few workarounds, luckily I have only 5k nodes, not 100k or 1m ))

Best regards,

Senthil Kumaran Rajan [Syncfusion]
Replied On April 7, 2015 01:11 PM UTC

Hi Sergei,

We could able to reproduce the reported time span in TreeViewAdv while expanding/collapsing the node and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon