We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to getan expanding event/callback

Thread ID:

Created:

Updated:

Platform:

Replies:

146119 Jul 21,2019 12:46 PM UTC Aug 21,2019 09:37 AM UTC Blazor 2
loading
Tags: TreeView
Johan Andersson
Asked On July 21, 2019 12:46 PM UTC

I am working with the TreeView and want to get a callback/event when the expand button
is pressed on a node (to fill in the children). I have not managed to figure out how to get this event.
What should I do?

Kanagambigai Murugan [Syncfusion]
Replied On July 22, 2019 12:18 PM UTC

Hi Johan, 
  
Sorry for the inconvenience caused. 
In TreeView, currently there isn’t support for event while performing expand action on TreeView nodes. We have already considered providing support for multiple events for the TreeView component in the Blazor platform. We will implement the events, NodeExpanding and NodeExpanded for node expand action and will include in our upcoming Blazor release, in the mid of August month. Until then, we appreciate your patience. 
 
Please let us know if you have any queries. 
 
Regards, 
Kanagambigai M. 


Kanagambigai Murugan [Syncfusion]
Replied On August 21, 2019 09:37 AM UTC

Hi Johan, 
  
Thanks for your patience. 
  
We are glad to inform that our latest (17.2.0.46-beta) NuGet package release has been rolled out. We have provided support for multiple events for the TreeView component. We have prepared a sample that demonstrates the NodeExpanding and NodeExpanded events of TreeView. 
  
  
  
Note: There is a break in the @ref functionality in Blazor with Preview 8. If you are accessing our component instance in code behind using @ref, you need to define both @ref and @ref:suppressField in all component’s tag-helper as shown in the below code snippet. Please refer to this GitHub thread for more information. 

<EjsTreeView @ref="tree" @ref:suppressField > </EjsTreeView> 
 
Kindly check the above sample and get back to us if you need any further assistance. 

Regards, 
Kanagambigai M. 




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon