Hello, I have created a TreeView component with nodes that can be manipulated using a context menu. However, I fail to get it working when using a mobile phone.
As a reproduction example I have used exactly the same code from the documentation https://blazor.syncfusion.com/documentation/treeview/how-to/process-the-tree-node-operations-using-context-menu.
If I manipulate the nodes in desktop version everything works correctly. However, if I switch to mobile version via Chrome dev tools or directly from a mobile phone then it does not work - context menu opens but selectedId field remains set to null because events NodeSelected or NodeClicked are not called.
The problem is reproducible using the example in the annex.
Hi David,
Greetings from Syncfusion support.
We have validated the reported issue in the Blazor TreeView component. We have checked the reported issue with the mentioned nodeSelected and nodeClicked events with the shared code. But we were not able to replicate the exact issue that you are facing at your end. The mentioned events were successfully triggered and got the tree node ID from the events. Are you facing issues with the event triggering or getting an incorrectly selected Id value? Please provide some additional details to validate your reported issue.
Video link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorTreeview-1882532675.zip
If possible, please provide the issue with replicated video footage. These details will help us to check and provide a prompt solution. Please get back to us with the requested details.
Regards,
Leo Lavanya Dhanaraj
Hi,
thank you for thorougly validating my issue. I have checked the video you included and the only difference in the reproduction steps is how you click the node. The click should be long so that the context menu pops up (in mobile mode, this should be a replacement for right mouse button). As the events are not called the context menu actions do not work as selected id is null.
In this scenario, in mobile mode, none of the events are called. In normal mode it works.
Best regards,
David
Hi David,
We have validated the reported query in the Blazor TreeView component and considered it as a bug at our end. The fix for this issue will be included in our weekly patch release on September 13, 2022. You can track the status of the issue fix using the following feedback link.
Feedback link: https://www.syncfusion.com/feedback/37260/the-nodeselected-and-nodeclicked-events-are-not-triggered-on-mobile-devices-while
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
We appreciate your patience.
Regards,
Leo Lavanya Dhanaraj
Hi David,
Sorry for the inconvenience.
Due to high priority features and bug fixes, we were unable to include the fix as promised. The fix for this issue will be included in our first weekly patch release on October, 2022. We appreciate your patience.
Regards,
Indhumathy L
Hi David,
Thanks for your patience.
We are glad to announce that our patch release (V20.2.50) has been rolled out successfully. The issue with “nodeSelected and nodeClicked events are not triggered on mobile devices while performing long presses” has been resolved in this release. To access this fix, we suggest you update the package to 20.2.50.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/TreeViewContextMenu-296460711.zip
Release Notes: https://blazor.syncfusion.com/documentation/release-notes/20.2.50?type=all#treeview
Please let us know if you need any further assistance.
Regards,
Sivakumar S