Hi
I'm attempting to wire up a Kendo grid to a web api. I found two great examples on the site: here and here.
Basically says configure the data source like this:
.DataSource(dataSource => dataSource .WebApi() .Model(model => { model.Id(product => product.ProductID); // Specify the property which is the unique identifier of the model model.Field(product => product.ProductID).Editable(false); // Make the ProductID property not editable }) .Create(create => create.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "Products" }))) // Action invoked when the user saves a new data item .Read(read => read.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "Products" }))) // Action invoked when the grid needs data .Update(update => update.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "Products", id = "{0}" }))) // Action invoked when the user saves an updated data item .Destroy(destroy => destroy.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "Products", id = "{0}" }))) // Action invoked when the user removes a data item )
I'm using version 2016.1.112 and .WebApi() isn't available. Any idea how the hook the data source to a web api without it?