or
<table id="Table1" style="height: 450px"> <thead> <tr> <th data-field="surName">Surname</th> <th data-field="foreName">Forename</th> <th data-field="dOB">DoB</th> </tr> </thead> <tbody> <tr> <td>Smith</td><td>John</td><td>21/5/2001</td> </tr></tbody></table><script type="text/javascript"> var s = new GetPats(); var result = s.getpatlist('Benz'); //Data source var localDataSource = new kendo.data.DataSource({ data: result, pagesize: 10, page:1 }); $("#Table1").kendoGrid({ columns: [{ field: "surName", title: "Surname" }, { field: "foreName", title: "Forename" }, { field: "dOB", title: "Date of Birth", template: '#= kendo.toString(dOB,"dd MMMM yyyy") #'}], dataSource: localDataSource, groupable: true, scrollable: false, sortable: true, pageable: true, height: 450, selectable: true });</script><ul data-role="listview" data-style="inset" data-type="group"> <li> <ul> <li>Bob Jones</li> </ul> </li> <li> Assets <ul data-role=listview"> <li>Lawn Mower</li> <li>Leaf Blower</li> <li>Hedge Clippers</li> </ul> </li></ul> # for (var i = 0; i < assetList.length; i++) { #<li>#= assetList[i] #</li># } # { width: 40, field: "Description", title: "Description", attributes: { title: 'x<b>yy</b>zz' } },

@(Html.Kendo().DropDownList() .Name("DropDownListRoles") .DataTextField("RoleName") .DataValueField("Id") .DataSource(datasource => datasource .Read(read => read.Action("GetRoles", "User")) .ServerFiltering(true) ) .SelectedIndex(0) )public ActionResult GetRoles() { var roles = UserService.GetRoles(); return Json(roles.Select(role => new SelectListItem() { Text = role.RoleName, Value = role.Id.ToString() }), JsonRequestBehavior.AllowGet); }