Hi Nicolas,
Greetings from Syncfusion support.
Query 1 – nodeTemplate
We have checked your reported problem. To achieve your requirement, we have prepared a sample. In that sample, we have rendered the button inside the nodeTemplate and display the button only on nodeSelect. During nodeSelect “e-active” is added to the selected node.
Refer the below code snippet.
|
<style>
.e-list-text .button {
visibility: hidden;
}
.e-list-item.e-active > .e-text-content .e-list-text .button {
visibility: visible;
}
</style>
|
Query 2 – Click event is not triggered for button.
To resolve your issue, refer the below styles in your application for triggering the click events for button inside the Treeview Template.
|
.e-treeview .e-list-text {
pointer-events: auto;
} |
Query 3 – Drag and Drop issue.
We are unable to reproduce your reported issue. When dragging, button is not displayed in drag node.
Refer the sample link for your reference.
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P