I want to make certain rows expandable using RowRender and LoadChildData, without Grouping in the grid it works as intended. If I use Grouping in the Grid, it shows incorrect behaviour, the expanded row doesn't display, or it can't be collapsed and stays as a new row.
<RadzenDataGrid @ref=grid AllowGrouping="true"
Data="@employees" Render="@OnRender" TItem="Employee"
LoadChildData="@LoadChildData" RowRender="@RowRender"
HideGroupedColumn="true" >
void RowRender(RowRenderEventArgs<Employee> args)
{
args.Expandable = args.Data.EmployeeID == 1;
}
void LoadChildData(DataGridLoadChildDataEventArgs<Employee> args)
{
args.Data = new List<Employee>() {
new Employee() { FirstName = "Example", Title = "Sales Representative"}
};
}