Treeview with 780 nodes: click on node take a while (more than 1 sec)

Hi,

I've reproduced the demo source code (Default Funcionalities) loading the first node (and sub-nodes) "Local Disk (C:)" in a loop of 60 iterations (60x13 = 780 nodes; each node has his unique id).

Further I've defined the "NodeSelected=OnNodeSelect" and "NodeClicked=OnNodeClick" events; the two functions OnNodeSelect and OnNodeClick are empty (only definition, no code inside them).

Then I run the application; when I click on a node, it takes several time (about 1.8 sec) to have it selected.

If I remove the events definition ("NodeSelected=OnNodeSelect" and "NodeClicked=OnNodeClick) when I click on a node it is immediately selected.

Thanks

Adriano


5 Replies

LD LeoLavanya Dhanaraj Syncfusion Team April 8, 2022 06:03 PM UTC

Hi Adriano,


Greetings from Syncfusion support.


We have prepared a Blazor TreeView sample in the latest package version, but we are unable to face the reported issue at our end. Please see the link below for the sample.


Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/NodeClick-2101582287.zip


Please confirm whether the issue occurs in our shared sample as well. Please update your package version to the latest and check for the issue. To provide better performance than the JavaScript Isolation approach, we have included some changes. You can find those changes at the below link.


Release notes link : https://blazor.syncfusion.com/documentation/release-notes/20.1.47?type=all#common


We have included these changes in our shared sample. Please check the attached sample for reference and get back to us if you need any further assistance.


Regards,

Leo Lavanya Dhanaraj



AD Adriano replied to LeoLavanya Dhanaraj April 11, 2022 09:04 AM UTC

Hi Leo,

the code (NodeClick) at the link provided works fine.

A difference with my code is that my project is targeting .NET 6, while yours is .NET 5.

Another difference is that your code refers to server component while mine to client component.

In attachment my sample project.


Thanks

Adriano



Attachment: BiblioSF_7cdeb0c9.zip



LD LeoLavanya Dhanaraj Syncfusion Team April 12, 2022 03:25 PM UTC

Hi Adriano,


We were able to reproduce the reported issue "Selection delay while binding event in the Blazor TreeView". But we need some additional time for further validation and will update you with further details on April 20, 2022. We appreciate your patience.


Regards,

Leo Lavanya Dhanaraj



IL Indhumathy Loganathan Syncfusion Team April 20, 2022 04:16 PM UTC

Hi Adriano,


We are facing complexity in finding the root cause of the issue, so we need some additional time on our end before confirming this issue. We will update you with further details on or before April 25, 2022. We appreciate your patience.


Regards,

Indhumathy L



IL Indhumathy Loganathan Syncfusion Team April 26, 2022 06:37 AM UTC

Hi Adriano,


Thanks for your patience.


We have considered improving the delay with TreeView selection while binding events in the Blazor WASM application as a feature at our end. Usually, Syncfusion will plan and implement the features based on feature rank, customer requested count and volume wish-list. We will implement and include this feature in any of our upcoming releases.


You can track the status through below link.


https://www.syncfusion.com/feedback/34432/facing-delay-in-selection-of-nodes-while-binding-treeview-events-in-blazor-wasm


We appreciate your patience.


Regards,

Indhumathy L


Loader.
Up arrow icon