This is the footprint of my web api
public DataSourceResult GetItems([System.Web.Http.ModelBinding.ModelBinder(typeof(WebApiDataSourceRequestModelBinder))]DataSourceRequest request)
Fiddler shows data being returned from the api as expected.
In my Angular service I have
return this.http
.get<GridDataResult>(`${this.url}?${queryStr}`)
.map(({data, total}: GridDataResult) =>
(<GridDataResult>{
data: data,
total: total,
})
);
In this case, my grid displays no records. If I change "data" to "Data" and "total" to "Total", my IDE complains
error TS2551: Property 'Data' does not exist on type 'GridDataResult'. Did you mean 'data'?
error TS2551: Property 'Total' does not exist on type 'GridDataResult'. Did you mean 'total'?
but.. with the "D" and the "T" I get data bound to the grid in spite of the compiler error (sometimes Node throws a message that there are compiler errors but usually the page displays data). Fiddler shows the api returning "Data" where the console in the browser shows "data".
I've deleted everything and installed from scratch. I updated all of my packages to latest including the Kendo packages.
I was suspicious of my install as in HTML files I receive an error on the Kendo tab, kendo-grid-column generates an error that it is not in the current scope. This is an IDE error and when I run, the gird looks fine.