Hi,
I am trying to call a Html extension helper method 'GetUserFormattedId' from the client template of a ajax bound grid column. I am trying the format a value of the column.
I am unable to get it working. Is it allowed to call extension methods in this way? Please advise.
I
I am trying to call a Html extension helper method 'GetUserFormattedId' from the client template of a ajax bound grid column. I am trying the format a value of the column.
I am unable to get it working. Is it allowed to call extension methods in this way? Please advise.
@{
Html.Kendo().Grid<InvoiceSummaryDto>()
.Name(
"invoiceAccountingGrid"
)
.Columns(columns =>
{
columns.Bound(l => l.Id).ClientTemplate(
"<a href='"
+ @Url.Action(
"Details"
,
"Invoice"
,
new
{ area =
"Accounting"
}) +
"/#= Id #'"
+
">"
+ @Html.GetUserFormattedId(@
"#= Id #"
) +
"</a>"
).Title(
"ID"
);
columns.Bound(l => l.ItemsDescription).Title(
"Description"
);
})
I