or
@(Html.Kendo().Grid((IEnumerable<EntrepriseViewModel>)ViewBag.Data) .Name("Grid") .Columns(columns => { columns.Bound(p => p.Id).Visible(false); columns.ForeignKey(p => p.IdCompany, (System.Collections.IEnumerable)ViewBag.CompanyList, "IdCompany", "CompanyName").HtmlAttributes(new { id = "CompanyDdl" }); columns.ForeignKey(p => p.IdEmploye, (System.Collections.IEnumerable)ViewBag.EmployeList, "IdEmploye", "EmployeName").HtmlAttributes(new { id = "EmployeDdl" }); columns.Command(command => command.Edit()).Width(200); }) .DataSource(dataSource => dataSource .Ajax() .Model(model => model.Id(p => p.id)) .Read(read => read.Action("Company_JSON_Read", "Home", new { id = Model.id })) .Update(update => update.Action("Company_JSON_Update", "Home")) ) .Editable(editable => editable.Mode(GridEditMode.InLine)) )@(Html.Kendo().Grid(Website.Prototype.Helpers.GetGridData(20)).Name("Grid1").Columns(columns =>{columns.AutoGenerate(true);}).Sortable().Scrollable().Filterable().DataSource(dataSource => dataSource.Ajax().ServerOperation(false)))
// selects item if its text is equal to "test" using predicate function
combobox.select(function(dataItem) {
return dataItem.text === "test";
});
with no result