or
.Columns(columns => { columns.Bound(customer => customer.CustomerName).Title("Customer Name"); columns.Bound(customer => customer.CustomerStatus.CustomerStatusName).Title("Status");})ViewBag.Weighbridges = dbDataService.ToLookUp<Weighbridge>();public class LookupEntity : ILookupEntity{ public int Id { get; set; } public string Description { get; set; }}@(Html.Kendo().MultiSelectFor(model => model.Weighbridges) .Name("Weighbridges") .DataTextField("Description") .DataValueField("Id") .Value(Model.Weighbridges) .Placeholder("Select weighbridges...") .HtmlAttributes(new {style= "width:310px"}) .AutoBind(true) .BindTo((IEnumerable<LookupEntity>)ViewBag.Weighbridges) )[DisplayName("Assigned Weighbridges")]public IEnumerable<LookupEntity> Weighbridges { get; set; }@{ ViewBag.Title = "Bills: Parent/Child";}<h2>Bills Index</h2>@(Html.Kendo().Grid<BillParent>() .Name("BillParentsGrid") .Columns(columns => { columns.Bound(h => h.Category); columns.Bound(h => h.Description); columns.Bound(h => h.Amount); columns.Command(command => { command.Edit(); }).Width(95); }) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(h => h.BillId); model.Field(h => h.BillId).Editable(false); }) .Events(events => events.Error("error_handler")) .Read(read => read.Action("BillParents_Read", "Bill")) .Update(update => update.Action("BillParent_Update", "Bill")) ) .Events(events => events.DataBound("dataBound")) .ClientDetailTemplateId("BillChildren") )<script id="BillChildren" type="text/kendo-tmpl"> @(Html.Kendo().Grid<BillChild>() .Name("BillChildren_#=BillId#") .Columns(columns => { columns.Bound(d => d.BillId).Width(50); columns.Bound(d => d.Description).Width(150); columns.Bound(d => d.Amount).Width(80); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(55); }) .DataSource(dataSource => dataSource .Ajax() .Model(model => { model.Id(d => d.BillId); model.Field(d => d.BillId).Editable(false); }) .Events(events => events.Error("error_handler")) .Read(read => read.Action("BillChildren_Read", "Bill", new { id = "#=BillId#" })) .Update(update => update.Action("BillChild_Update", "Bill")) .Create(create => create.Action("BillChild_Create", "Bill", new { id = "#=BillId#" })) .Destroy(destroy => destroy.Action("BillChild_Destroy", "Bill"))) .ToolBar(tools => tools.Create()) .ToClientTemplate() )</script>@ModelType Object@code Dim DropDown As Kendo.Mvc.UI.DropDownList = Html.Kendo().DropDownListFor(Function(m) m).BindTo(CType(ViewData(ViewData.TemplateInfo.GetFullHtmlFieldName(String.Empty) & "_Data"), SelectList)) DropDown.Render() End Code@ModelType IEnumerable(Of EF.Team)@code Dim CsvGrid As Kendo.Mvc.UI.Grid(Of BO.Models.Contractor.CsvUploadData) = Html.Kendo.Grid(Of BO.Models.Contractor.CsvUploadData).Name("CsvGrid") _.Columns(Sub(columns) columns.Bound(Function(c) c.FirstName) columns.Bound(Function(c) c.LastName) columns.Bound(Function(c) c.Email) columns.Bound(Function(c) c.FirstbookingDate) columns.Bound(Function(c) c.FullService) columns.Bound(Function(c) c.PoolSize) columns.Bound(Function(c) c.Spa) columns.Bound(Function(c) c.Street) columns.Bound(Function(c) c.Zipcode) columns.ForeignKey(Function(f) f.TeamId, Model, "TeamId", "Name").Width(200).Title("Team") columns.Command(Function(Command) Command.Destroy()) End Sub) _.ToolBar(Sub(toolbar) toolbar.Create() toolbar.Save() End Sub) _ .Editable(Function(editable) editable.Mode(GridEditMode.InCell)) _ .Pageable() _ .Navigatable() _ .Sortable() _ .Scrollable() _.DataSource(Function(dataSource) dataSource _ .Ajax() _ .Batch(True) _ .ServerOperation(False) _ .Events(Function(events) events.Error("CsvUpload.GridEditError")) _ .Model(Sub(Model) Model.Id(Function(d) d.CsvUploadDataId) Model.Field(Function(f) f.TeamId).DefaultValue(1) End Sub) _ .Create("Editing_Create", "Grid") _ .Read("csvuploadgriddata", "services", New With {.area = String.Empty}) _ .Update("Editing_Update", "Grid") _ .Destroy("Editing_Destroy", "Grid")) CsvGrid.Render()End Code<html><head> <meta name="viewport" content="width=device-width" /> <title>Test Page</title> <script src="/Scripts/modernizr-2.5.3.js"></script> <link href="/Content/kendo.common.min.css" rel="stylesheet"/> <link href="/Content/kendo.default.min.css" rel="stylesheet"/> <script src="/Scripts/jquery-1.8.3.js"></script> <script src="/Scripts/kendo.web.min.js"></script> <script src="/Scripts/kendo.all.min.js"></script> <script src="/Scripts/kendo.aspnetmvc.min.js"></script> <script src="/Scripts/jquery.unobtrusive-ajax.min.js"></script> <script src="/Scripts/cultures/kendo.culture.en-ZA.min.js"></script></head><body> <div class="demo-section"> <h2>Invite Attendees</h2> <label for="required">Required</label> <select id="required" multiple="multiple" name="required"></select><script> jQuery(function(){jQuery("#required").kendoMultiSelect({"dataSource":["Steven White","Nancy King","Anne King","Nancy Davolio","Robert Davolio","Michael Leverling","Andrew Callahan","Michael Suyama","Anne King","Laura Peacock","Robert Fuller","Janet White","Nancy Leverling","Robert Buchanan","Andrew Fuller","Anne Davolio","Andrew Suyama","Nige Buchanan","Laura Fuller"],"placeholder":"Select attendees...","value":["Anne King","Andrew Fuller"]});});</script> <label for="optional">Optional</label> <select id="optional" multiple="multiple" name="optional"></select><script> jQuery(function(){jQuery("#optional").kendoMultiSelect({"dataSource":["Steven White","Nancy King","Anne King","Nancy Davolio","Robert Davolio","Michael Leverling","Andrew Callahan","Michael Suyama","Anne King","Laura Peacock","Robert Fuller","Janet White","Nancy Leverling","Robert Buchanan","Andrew Fuller","Anne Davolio","Andrew Suyama","Nige Buchanan","Laura Fuller"],"placeholder":"Select attendees..."});});</script> <button class="k-button" id="get">Send Invitation</button></div><script> $(document).ready(function () { var required = $("#required").data("kendoMultiSelect"); var optional = $("#optional").data("kendoMultiSelect"); $("#get").click(function () { alert("Attendees:\n\nRequired: " + required.value() + "\nOptional: " + optional.value()); }); });</script><style scoped> .demo-section { width: 350px; height: 200px; padding: 30px; } .demo-section h2 { font-weight: normal; } .demo-section label { display: inline-block; margin: 15px 0 5px 0; } .demo-section select { width: 350px; } #get { float: right; margin: 25px auto 0; }</style></body></html>@(Html.Kendo().Editor() .Name("editor") .HtmlAttributes(new { style = "width: 740px;height:440px" }) .Value(@<text>@ViewBag.FirstText</text> ))public ActionResult ShowEditor(int id){ ViewBag.FirstText = "<a>bbb</a>"; return View();}