or
@Html.DisplayFor(m => m.MaxSize)
@(Html.Kendo().DropDownListFor(m => m.SchedulePreference.DesiredRoomId) .DataTextField("Value").DataValueField("Key") .DataSource(ds => ds.Read(read => read.Action("RoomDropDown_Read", "Scheduling") .Data("GetSize")) .ServerFiltering(true) ) )<script type="text/javascript"> $(document).ready(function () { $('#MaxSize').change(rebindRooms); });</script>function rebindRooms(e) { var el = e.currentTarget.value; var ddl = $("#SchedulePreference_DesiredRoomId").data("kendoComboBox"); if (ddl && ddl.dataSource) { ddl.dataSource.read(); }}function GetSize() { var el = $('#MaxSize'); var s = el ? el.val() : 0; return { size: s }}[NoCache]public ActionResult RoomDropDown_Read(int size=0){ var list = _uow.RoomRepository.GetAll().OrderBy(o => o.DropDownText).Where(w => w.MaxSize >= size).Select(s=>new KeyValuePair<int,string>(s.Id,s.DropDownText)).ToList(); return Json(list, JsonRequestBehavior.AllowGet);}var ruleSetDropDown = Html.Kendo().DropDownList() .Name("RuleSets_#=Id#") .BindTo(Model.RuleSets) .DataTextField("Name") .DataValueField("Id") .ToHtmlString();column.Template(t => t) .ClientTemplate(ruleSetDropDown.ToString()) .Title("").ToolBar(t => { t.Template(ruleSetDropDown); })@(Html.Kendo().MobileView() .Name("detail") .Title("Attendance Monitor") .Layout("MobileLayout") .Content(obj => Html.Kendo().MobileListView() .Name("ParkListDetail") .TemplateId("detailTemplate").AutoBind(true) .DataSource(dataSource => dataSource.Read(read => read.Action("ReadDetails", "Mobile")))) )@(Html.Kendo().ListView(Model) .Name("ParkListSummary") .TagName("div") .ClientTemplateId("summaryTemplate").AutoBind(true) .DataSource(dataSource => dataSource .Read("ReadDetails", "Mobile") .Model(model => model.Id(park => park.ParkID)) ))