Hierarchy Data Grid Force Only One Expand

I'm using the RadzenDataGrid that uses hierarchy. I'm attempting to allow inline editing for the records in the child grids. What I'm noticing is that I can achieve this, but only if all other child grids are collapsed. Editing does not work, for example, if I have multiple child grids expanded and I attempt in-line editing on anything other than the last expanded child grid.

It appears that the @ref option on the child grid is set to the last expanded child grid. If there is a way to examine each expanded grid in code, I might be able to work something out. Otherwise, I need to make sure all the expanded child grids are collapsed except for the one I need to edit. Is there a way to do this?

You can set ExpandMode to Single: Blazor DataGrid Component - Hierarchy | Free UI Components by Radzen

There is exactly such template in Radzen Blazor Studio:


Yes, I discovered that if the ExpandMode is set to Single, the confusion about which @ref grid to use is cleared up. I was hoping to be able to have ExpandMode set to Multiple, however.

I think my solution will be to offer options for Multiple or Single. This will allow in-line editing, which requires ExpandMode.Single, and dialog editing which will allow the entire grid to be open.

Thanks for the quick reply