Hi,
I have a RadzenDataGrid and one column is a checkbox.
The check box should only be visible for some rows and not others.
I need to set the Visible property of the checkbox component:
<RadzenDataGrid TItem="SOQItem_Model" ... >
<Columns>
<RadzenDataGridColumn TItem="SOQItem_Model ....>
<HeaderTemplate>
<RadzenCheckBox Visible="@ShowCheckbox()" /> //<== compiler error here (missing parameter)
async Task ShowCheckbox(SOQItem_Model row_data)
{
`` return await row_data.ShowCheckbox();
}
The compiler is complaining in the DataGrid where I create the RadzenCheckBox about needing the row_data parameter for the ShowCheckbox() method, but I don't know how to do this.
How can I pass the DataGrid's row data to the ShowCheckbox method?