Hi Radzen team,
few questions from playing with the Tree component with Blazor which are undoubtedly rooted in my own ignorance...
- When looking at the source code of the Radzen Blazor Components, I have a bit of a hard time figuring out how to port that code to the Razden IDE... Could you provide more examples geared towards Radzen IDE users? Or could you provide some explanation on how to migrate from thoses samples to the IDE?
- I often find myself writing code from Visual Studio and then trying to "reverse-engineer" it back into the Radzen IDE... I guess sometimes the IDE becomes burdensome and it would be nice to be able to just write C# code directly into Visual Studio... For example the Expand event of the tree component!
- In the Load on demand paragraph of the Blazor Tree documentation, you have the following code:
<RadzenTree Data="@Northwind.Categories" Expand="@OnExpand">
<RadzenTreeLevel TextProperty="CategoryName"/>
</RadzenTree
@code {
void OnExpand(TreeExpandEventArgs args)
{
var category = args.Value as Category;
args.Children.Data = category.Include(c => c.Products).Products;
args.Children.TextProperty = "ProductName";
args.Children.HasChildren = (product) => false;
}
}
I believe category.Include() is not valid. but I would expect the following code to work:
args.Children.Data = catgegory.Products;
but catgory.Products is null... how can I retrieve the children of an object when retrieving that object?
I hope this makes sense... Thanks!