Hello,
how can i send a id parameter on Onclick delete action javascript, this is my code. i don't want to use action link because i'm using ajax call
Thanks for helping.
@(Html.Kendo().Grid(Model)
.Name("Conventions")
.Columns(columns => {
columns.Bound(c => c.Libelle).Width("450px");
columns.Bound(c => c.DateEnvoi).Format("{0:dd/MM/yyyy}");
columns.Bound(c => c.Statut.Libelle).Title("Statut");
columns.Template(@<text></text>).ClientTemplate("<span class='k-icon k-i-delete' id='deleteIcon'></span>").HtmlAttributes(new { onclick = "onDeleteConvention()" }).Width("40px");
}).NoRecords("Pas de conventions trouvés")
.Scrollable().Height(200).DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.ServerOperation(false)
.Model(model =>
{
model.Id(p => p.ConventionId);
model.Field(p => p.Libelle).Editable(false);
model.Field(p => p.DateEnvoi).Editable(false);
model.Field(p => p.Statut.Libelle).Editable(false);
})
)
)