or
@(Html.Kendo().Grid<Application.Models.OrgHtmlContentViewModel>() .Name("ContentGrid") .Columns(columns => { columns.Bound(c => c.OrgHtmlContentTypeName).Width(150).Title("Content Type"); columns.Bound(c => c.HtmlContent).Width(600).Title("Html Content").Encoded(false); columns.Command(command => { command.Edit(); }).Width(100); }) .HtmlAttributes(new { style = "height: 600px;" }) .Scrollable() .Sortable() //.Editable(editable => editable.Mode(GridEditMode.PopUp)) .Editable(editable => { editable.Mode(GridEditMode.PopUp); editable.TemplateName("OrgHtmlContentEditor").Window(w => w.Title("Org Html Content").Width(760)); }) .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(c => c.OrgHtmlContentId)) .Read(read => read.Action("OrgHtmlContent_Read", "OrgHtmlContents", new { id = Model.OrganizationId })) .Update(update => update.Action("OrgHtmlContent_Update", "OrgHtmlContents")) ))@model Application.Models.OrgHtmlContentViewModel<div style="padding: 10px;"> <h6>@Html.DisplayFor(m => m.OrgHtmlContentTypeName)</h6> @(Html.Kendo().EditorFor(c => c.HtmlContent) .Name("contentEditor") .HtmlAttributes(new { style = "width: 740px;height:440px" }) )</div>var categories = []; setTimeout(function() { categories = [{ "value": 1, "text": "Beverages" },{ "value": 2, "text": "Condiments" },{ "value": 3, "text": "Confections" }]; $('#grid').data('kendoGrid').dataSource.read(); $('#grid').data('kendoGrid').refresh(); }, 100);