DataGrid Master Detail Hierarchy on demand

Dear Radzen Support,

I'd like DataGrid Hierarchy can be allowed or disallowed dynamically from program.
There ader ediatble rows in my DataGrid component with detailed hierarchy which has also an editable row. I would like to disallow the toggle arrow if the user does not fill in the firts, main row input fields and allow when does.
Can I solve it from C# code or I have to write JavaScript by selecting rz-datatable-edit row, please?

You can set if the row is expandable or not like this:

1 Like

I see but it happens automatically when the rows of the table is rendered during the loading table data. I want to dynamically set the value of the Expandable field depending on other conditions.

This is exactly how to achieve this.

1 Like

Thank you I understand now.