@(Html.Kendo().Grid((IEnumerable<Arda.Models.SlideShow>)ViewBag.slideshow) .Name("gridHome") .Columns(columns => { columns.Bound(p => p.ID).Hidden(); columns.Bound(p => p.Title).Column.Title = "name "; columns.Bound(p => p.Price).Column.Title = "price"; columns.Bound(p => p.Text).Column.Title = "price"; columns.Command(command => command.Custom("edit").Action("Edit", "SlideShow" )).Width(100).Title("edit"); }) .Sortable() )
columns.Command(command => command.Custom("edit").Action("Edit", "SlideShow", new { id = p=>p.ID })).Width(100).Title("edit");
columns.Template(c => @Html.ActionLink("edit").ToString(), "foo", new { id = c.ID }));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)