I wasn't able to find the solution anywhere. Any help is much appreciated!
I built a Radzen DataGrid in Blazor. One of the columns is a button. On the clicked event of the button on each row, I want to pick up the values (NMLS, FName, LName) of that particular row and pass it to a function. The DataGrid in-line editing example you have on your website does not pick up a value and pass to a function. It does send an instance of an object, which I tried, but the object was blank. I need to get to the data object of that row. Thanks!
Markup Code
<RadzenButton Icon="edit" ButtonStyle="ButtonStyle.Light" Variant="Variant.Flat" Size="ButtonSize.Medium" Click=@(args => ShowDetails(banker.NMLS)) @onclick:stopPropagation="true" >
C# Code
@code{
void ShowDetails(BankerYearly banker)
{
navman.NavigateTo("YTDCompanyShowDetails" + "/" + banker.NMLS);
}
}
@code {
Radzen.DataGridGridLines GridLines = Radzen.DataGridGridLines.Both;
private BankerYearly[] bankerY;
protected override async Task OnInitializedAsync() => bankerY = await Http.GetFromJsonAsync<BankerYearly[]>("sample-data/loytd.json");
}