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
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
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
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
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
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.
We appreciate your patience.
Regards,
Indhumathy L