hi everybody,
I have this grid that works well, and pass the id=0 when clicking on the icon, unfortunately I can't find away to pass the hidden ID value.
is there something I am missing here.
I appreciate any help from you guys
regards, Ray
@(Html.Kendo().Grid<HeatersLibrary.Models.DocumentsViewModel>
()
.Name("grid")
.Columns(columns => {
columns.Bound(p => p.ID).Hidden();
columns.Bound(p => p.Brand);
columns.Bound(p => p.Size);
columns.Bound(p => p.Type);
columns.Bound(p => p.PartNumber);
columns.Bound(p => p.Filename);
columns.Bound(p => p.Description);
columns.Bound(null).Title(" ").Width(50)
.ClientTemplate(
@Html.ActionLink(" ", "EditDoc", "Home", new { id=0 }, htmlAttributes: new { @class = "glyphicon glyphicon-pencil", @title = "Edit Description" }).ToHtmlString() + " | " +
@Html.ActionLink(" ", "DeleteDoc", "Home", new { id=0 }, htmlAttributes: new { @class = "glyphicon glyphicon-trash", @title = "Delete Description \n WITHOUT CONFIRMATION" }).ToHtmlString()
)
;
})
.Pageable()
.Scrollable()
.HtmlAttributes(new { style = "height:250px;" })
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(10)
.Read(read => read.Action("BindingDocuments", "Home").Data("additionalData"))
)
)