Click on Image inside a template in TreeView
I am not sure how to solve the follow issue - I would like to click on Images which is inside template in TreeView control, but because of some reason - the click hander does not triggers.
I have attached a demo which is showing the issue.
Attachment: tree_blazor_e6ed6f60.rar
Hi
Yordon,
Greetings
from Syncfusion support.
We
checked your reported problem that could not trigger click events on the icon
inside the TreeView component’s node template. By default, we have prevented
the click action in node template of TreeView component. Setting pointer-events as auto for
tree nodes will resolve your problem and it will allow to invoke the click
event, when icons within tree nodes are clicked. Refer the below code
snippet.
|
<style> .e-treeview.e-fullrow-wrap .e-text-content { pointer-events: auto; } style> |
Refer
the below sample link.
https://www.syncfusion.com/downloads/support/forum/158142/ze/tree_blazor469823130.zip
Please, refer the following links to know
more about SF Blazor TreeView component
UG Documentation –https://blazor.syncfusion.com/documentation/treeview/getting-started/
Demo link-https://blazor.syncfusion.com/demos/treeview/default-functionalities/
API reference-https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor~Syncfusion.Blazor.Navigations.ITreeView_members.html
Please
let us know, if you need any further assistance.
Regards,
Sowmiya.P
Would be cool if this is somehow as an boolean option in the configuration of the component or something..
Thank You very much dear support for fast and correct response!