kendo-labs / breeze-kendo

13 stars 10 forks source link

Sort is not defined for paging on grid #13

Open Catchops opened 8 years ago

Catchops commented 8 years ago

I've been able to hook up my Breeze data to my Kendo grid using this data source. However, it doesn't always work depending on if a sort column has been defined. When you select a given page on the grid, it will send the skip(x).take(y) to the server, but depending on if the sort field and direction are defined it will be successful or fail. The usage of .skip/take requires a sorted set of data, so the sort field is needed when the call is made to the service. You can sort a given column one way, then sort it the other way, then as soon as the arrow/caret goes away there is no sort defined and the call fails. Has anyone else seen this?