I am using a MudBlazor MudTable. I cannot get the OnRowClick Event to work. I tried using the pattern from their documentation, but keep getting an error message.
[using .Net 8.0, MudBlazor 8.12]
Pattern suggested in documentation samples: (Visit1 is the model)
<MudTable Items="@Vis1List" OnRowClick="RowClickEvent"> </MudTable>
@code {
.
.
private void RowClickEvent(TableRowClickEventArgs<Visit1> tableRowClickEventArgs)
{
clickedEvents.Add("Row has been clicked");
}
}
VS2022 gives error on the OnRowClick="RowClickEvent". Error message is
"CS1503: Argument2: cannot convert from 'method group' to Microsoft.AspNetCore.Components.EventCallback"
What is the correct format to use in this case?