Hello,
I'm using a kendo.data.Datasource with serverPaging and ServerSorting options in an MVVM implementation.
This datasource is roughly defined like this:
I'm using a kendo.data.Datasource with serverPaging and ServerSorting options in an MVVM implementation.
This datasource is roughly defined like this:
var
MyDatasource =
new
kendo.data.DataSource({
type:
'odata'
/* for odata style IQueryable web api */
serverPaging:
true
,
serverSorting:
true
,
pageSize: 15,
transport: {
read: {
dataType:
"json"
,
url:
"mywebapi/mydata"
})
The DataSource is used by a Kendo grid with scrollable: { virtual: true }.
A user has the ability to search for data where the searchparam is set on my viewmodel.
within my viewmodel i simply call "MyDatasource.read({ searchvalue: userparam })" to get the data from my web-api which works perfectly.
However, in combination with paging the parameter is lost when reading the next page.
Is there any way to preserve that param so it gets send with the next pages as well ?
Thanks in advance.