or
@(Html.Kendo().ComboBox()
[Display(Name = "COMMON TASK")]public bool CommonTask { get; set; }@(Html.Kendo().Grid<OemGridRow>(Model.Oems) .Name("OemGrid") .Columns(column => { column.Bound(p => p.Title); }) .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.Id)) .Read(read => read.Action("GetOems", "Customer")) ) .Pageable() .Sortable() .Scrollable() .Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)) .Events(events => events.Change("onOemChange")))@(Html.Kendo().Grid<CustomerGridRow>() .Name("CustomerGrid") .Columns(column => { column.Bound(p => p.Title); }) .Pageable() .Sortable() .Scrollable() .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.Id)) .Read(read => read.Action("GetCustomers", "Customer").Data("getOemId")) ))var OemId;function onOemChange(e) { // Get the grids var oemGrid = $('#OemGrid').data('kendoGrid'); var customerGrid = $("#CustomerGrid").data("kendoGrid") // Set OemId to the selected id of the Oem OemId = $.map(this.select(), function (item) { var dataItem = oemGrid.dataItem(item); return dataItem.Id; }); // Read the datasource again customerGrid.dataSource.read();}// function getOemId() { // Return the updated OemId return { filterId: OemId };}public ActionResult GetCustomers([DataSourceRequest]DataSourceRequest request, string filterId){ Guid oemId = filterId.ToGuid(); // Omitted return Json(customers.ToDataSourceResult(request));}