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.
Unfortunately, activation email could not send to your email. Please try again.

Collapsing of the node with multiple nested nodes is slow

Thread ID:

Created:

Updated:

Platform:

Replies:

118728 Apr 4,2015 05:13 PM Apr 7,2015 09:11 AM Windows Forms 3
loading
Tags: TreeViewAdv
Sergei Leschinksy
Asked On April 4, 2015 05:13 PM

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.

Thanks,
Sergei



Senthil Kumaran Rajan [Syncfusion]
Replied On April 6, 2015 09:01 AM

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.

Regards,
Senthil

Sergei Leschinksy
Replied On April 6, 2015 09:21 AM

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,
Sergei

Senthil Kumaran Rajan [Syncfusion]
Replied On April 7, 2015 09:11 AM

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.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Regards,
Senthil

CONFIRMATION

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.

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.

;