or
I'm simply trying to fire an event, and it doesn't work. (I'm starting to feel like Kendo is a beta that we pay to test.)
Markup:
@(Html.Kendo().AutoCompleteFor(m => m.EditName) .Events(e => e.Select("alert('test')")) .DataSource(source => source.Read(read => read.Action("GetUsers", "Administration")) .ServerFiltering(true)))<input id="CompanyCode" data-textfield="ItemText" data-valuefield="ItemValue" data-endpoint="http://localhost:8888/Customers/Get" data-selected="40"/> <input id="VendorId" data-textfield="ItemText" data-valuefield="ItemValue" data-endpoint="http://localhost:8888/Vendors/Get" data-cascade="CompanyCode"/> <script src="Content/js/jquery.min.js"></script><script src="Content/js/kendo.all.min.js"></script><script> $(function(){ $('#CompanyCode').each(function(){ var target = $(this); var options = { dataTextField: target.data('textfield'), dataValueField: target.data('valuefield'), dataSource: { transport: { read: target.data('endpoint') } } } target.kendoDropDownList(options); }); $('#VendorId').each(function(){ var target = $(this); target.kendoDropDownList( { dataTextField: target.data('textfield'), dataValueField: target.data('valuefield'), dataSource: { transport: { read: target.data('endpoint'), parameterMap: function(options, operation) { return { companyCode: options.filter.filters[0].value } } }, serverFiltering: true }, cascadeFrom: target.data('cascade'), autoBind: false }); }); });</script>public ActionResult EditingInline_Update([DataSourceRequest] DataSourceRequest request, OrderViewModel order)
{ if (order != null && ModelState.IsValid) { order = UpdateOrder(order); repository.UpdateOrder(order);
} if (order.orderStatus == "HD") return RedirectToAction("Info"); return Json(ModelState.ToDataSourceResult()); }@(Html.Kendo().Grid<VehicleGroupGridRow>() .Name("VehicleGroupGrid") .Columns(column => { column.Bound(p => p.Title).ClientTemplate("<a href='/VehicleGroup/Details/#= Id #'>#= Title #</a>"); column.Command(command => { command.Edit(); command.Destroy(); }); }) .ToolBar(commands => commands.Create()) .Editable(editable => editable.Mode(Kendo.Mvc.UI.GridEditMode.InLine)) .Sortable() .DataSource(dataSource => dataSource .Ajax() .Events(events => events.Error("error_handler")) .Model(model => model.Id(p => p.Id)) .Create(create => create.Action("CreateVehicleGroup", "VehicleGroup")) .Read(read => read.Action("GetVehicleGroups", "VehicleGroup")) .Update(update => update.Action("UpdateVehicleGroup", "VehicleGroup")) .Destroy(destroy => destroy.Action("DestroyVehicleGroup", "VehicleGroup")) ) )