Blazor RadzenDropDwopnDataGrid RowRender: "no overload matches delegate"

I'm using Blazor Server and trying to get conditional formatting on rows in a RadzenDropdownDataGrid. Following the example here:

I've created a handler method (empty for now) in the code:

void RowRender(RowRenderEventArgs<CaseMeta> args) {}

And the declaration of my datagrid looks like this:

<RadzenDropDownDataGrid 
    TItem="CaseMeta"
    TValue="string" 
    LoadData="@loadData"
    FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" 
    FilterOperator="StringFilterOperator.StartsWith"
    AllowVirtualization="true"
    AllowFiltering="true"
    AllowClear="true"
    Data="@searchCases"
    Count="@count"
    TextProperty="CaseId"
    ValueProperty="Id"
    Change="@OnChangeOpenCasePicker"
    RowRender="@RowRender"
    Style="width:600px"
>

"@RowRender" has an error indicator that says "No overload for 'RowRender' matches delegate 'Action<RowRenderEventArgs>'".

I have tried renaming the method, with no luck. I can't figure out what the issue is. The closest thing I have found in searching is this topic:

The user there has the same error, and it seemed to be related to RowRender not being supported at that time by RadzenDataGrid (only RadzenGrid). The response inidicated it would be fixed. Maybe it isn't fixed yet? Or perhaps I'm doing something wrong. Any help is appreciated. Thanks!

Edit: I've also tried CellRender and get the same behavior.

You can use object as generic argument of RowRender event args:


1 Like

Aha! This is the answer. Thank you!

You solved the problem even though I left some information out. The information I left out was evidence of what I was critically ignoring: The error message was getting was actually:

No overload for 'RowRender' matches delegate 'Action<RowRenderEventArgs <object>>'