Radzen Treeview Blazor Server

Hello,

Is there a way to refresh the child nodes after the initial load of the Tree component? Also, can we invoke the Expand event every time we expand the node and below is the code for the same.

async Task OnExpand(TreeExpandEventArgs args)
{ }

OnExpand event only works for the first time and do we have an option to invoke the event on every expand or if there is any change in the data (child nodes).

This event can be fired on every expand:

Hi Enchev,

Thanks for the quick response.

The Expand event works well if we expand a node for the first time, but if we close the same node and reopen again this event will not be triggered. Can we trigger the event for same node all the time.

Looks like you didn't check the example I've linked. The Expand event will be fired every time.

We have that implemented in our project. We need to refresh the child nodes for the selected node. When we collapse and expand the same node again, we do not see the event fired. We have to make an API call on expand to refresh the child nodes.

Would it be possible for us to connect over the call. I can screen share and demo the issue.

Again, look at the demo code - you can implement the same in your code. You can get also the entire source code to debug it at your end to check that in this Tree setup the event will be raised on every expand:

I would like to kindly remind you that we provide support only for customers with active subscription. You can send more details about your subscription status at info@radzen.com. Calls are available only for enterprise customers as last resort.