Hi, i want to add some review for the code. try this, it's work
columns.Add(c => c.CustomerID).Format( Html.ActionLink("Edit", "Home", new { id = "{0}"}}) ).Encoded(false).Title("Edit");
| <% Html.Telerik().Grid(Model) |
| .Name("UserType") |
| .DataBinding(dataBinding => dataBinding |
| //Ajax binding |
| .Ajax() |
| //The action method which will return JSON |
| .Select("_AjaxBinding", "UM") |
| ) |
| .Columns(colums => |
| { |
| colums.Bound(o => o.TypeID).Visible(false); |
| colums.Bound(o => o.UserType).Width(30).Filterable(true); |
| colums.Bound(o => o.Description).Width(200).Filterable(false); |
| colums.Bound(o => o.TypeID).Format( |
| %><%Html.ActionLink("Edit", "Edit", new { Id = "{0}" }).ToString()); |
| }) |
| .Pageable() |
| .Sortable() |
| .Filterable() |
| .Render(); |
| %> |