Click on Image inside a template in TreeView

Hello dear support. 
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

4 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team September 25, 2020 08:12 AM UTC

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-eventsauto; 

    } 

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



Marked as answer

YO Yordan September 25, 2020 04:32 PM UTC

Worked ! But spend more than 30 hours on this issue.
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!


SP Sowmiya Padmanaban Syncfusion Team September 28, 2020 11:59 AM UTC

Hi Yordan, 
 
We are happy to hear that your problem has been resolved. Based on your request, we have considered this as a feature in our TreeView component. This feature will be included in our Volume 3 SP1 release which is expected to be released at the end of October 2020. 
 
Track the below link for feature status. 
 
 
We appreciate your patience. 
 
Regards,  
Sowmiya.P 



SP Sowmiya Padmanaban Syncfusion Team November 9, 2020 03:07 AM UTC

Hi Yordan, 
 
We are glad to announce that our Essential Studio 2020 Volume 3 Service Pack release v18.3.0.47 is rolled out and is available for download under the following link.  
 
 
We have enabled the TreeView template node interaction by default in this release. 
 
You can update to the latest package version (18.3.0.47) to use this support in your sample. 
 
For your reference, we have prepared a TreeView sample based on this in the link:  
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards, 
Sowmiya P. 


Loader.
Up arrow icon