or
c.Command(command => command.Destroy().Text("")).Width(90);c.Command(command => command.Destroy().Text(" ")).Width(90);public class User{ public Guid UserId { get; set; } public string Name { get; set; } public Guid TimeZoneId { get; set; }}public class UserViewModel{ public Guid UserId { get; set; } public string Name { get; set; } public Guid TimeZoneId { get; set; }
public string TimeZoneName { get; set; }
} <%: Html.Kendo().Grid(Model.Users) .Name("Grid") .Columns(columns => { columns.Bound(p => p.UserId); columns.Bound(p => p.Name); columns.Bound(p => p.TimeZoneName); columns.Bound(p => p.TimeZoneId).EditorTemplateName("TimeZoneId"); columns.Command(command => { command.Edit(); command.Destroy(); }); }) .Editable(editable => editable.Mode(GridEditMode.InLine)) .DataSource(dataSource => dataSource .Ajax()
.Model(model =>
{
model.Id(p => p.UserId);
}) .Read(read => read.Action("EditingInline_Read", "Grid")) .Update(update => update.Action("EditingInline_Update", "Grid")) .Destroy(update => update.Action("EditingInline_Destroy", "Grid")))%><%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %><% Html.Kendo().DropDownList() .Name("TimeZoneId") .DataValueField("TimeZoneId") .DataTextField("Name") .BindTo(ViewBag.TimeZones).Render();%>