Please anyone can help me?
Anyone can help me to create a Edit Button sending Id as parameter? I already tried many different ways.
<FluentDataGrid Id="jobreferencerules" Items="@forecasts" TGridItem="My Class">
<PropertyColumn Title="Id" Property="@(c => c!.Id)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Group Code" Property="@(c => c!.Group.Pessoa.Cd_Pes)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Group Name" Property="@(c => c!.Group.Pessoa.Apelido)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Modal Code" Property="@(c => c!.Tipo_Modal_Imp_Exp.Cd_Tp_Modal)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Doc Code" Property="@(c => c!.Tipo_Doc_Cliente.ID_DC)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Doc Name" Property="@(c => c!.Tipo_Doc_Cliente.Nome_DC)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Status" Property="@(c => c!.Enabled)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Created By" Property="@(c => c!.User.Nome_Usuario)" Sortable="true" Align="Align.Start" />
<PropertyColumn Title="Created Date" Property="@(c => c!.Insert_Date)" Format="dd-MM-yyyy" Sortable="true" Align="Align.Start" />
<<<<<<<<BUTTON EDIT HERE>>>>>>>>
</FluentDataGrid>
@code {
private void Edit(int id)
{
NavManager.NavigateTo($”/editjobreferencerules/{id}”);
}
}
Just someone help me
New contributor
Leandro Santos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.