Skip to main content

Posts

Showing posts from November, 2013

EntityDataSetController with Kendo UI Grid create record issue

When binding Kendo UI Grid to odata data source implemented by .NET EntityDataSetController, I find out the creating function did not work well: The creation of record is successfully at the back end but the Kendo grid does not update the record id returned from creation call. Here is the code for CreateEntity() function:          [HttpPost]         protected override SupplierEntity CreateEntity(SupplierEntity se)         {             Supplier supplier = new Supplier()             {                 SupplierCode = se.SupplierCode,                 SupplierName = se.SupplierName,                 SupplierAddress = se.SupplierAddress,                 SupplierCountry = se.SupplierCountry,                 ModifiedOn = DateTime.Now             };             db.Suppliers.AddObject(supplier);             db.SaveChanges();             se.SupplierID = supplier.SupplierID;             return se;         } Here is the data source definition in front end:         var supplierModel = {