I'm having a problem with Kendo .Pagable. We have a webapplication that displays entries in a grid. The user can choose between 25, 50, 100, 200 entries per site. But whenever the user enters the entry edit page and goes back to the overview page it gets reset to 25 entries per page.
I could not find out how to persist the state (let's say 100 entries per page) for the grid on reload. Can you help me out?
Here the code snippet
01.
GRID.DataSource(dataSource => dataSource
02.
.Ajax()
03.
.PageSize(25)
04.
.Model(m => { m.Id(a => a.Id); })
05.
.Read(read => read
06.
.Action(
"Read"
,
"Overview"
)
07.
.Data(
"additionalGridData"
))
08.
.Sort(x => x.Add(y => y.Id))
09.
)
10.
.AutoBind(
false
)
11.
.Filterable()
12.
.Sortable(c=>c.SortMode(GridSortMode.MultipleColumn).AllowUnsort(
true
).ShowIndexes(
true
).Enabled(
true
))
13.
.Pageable(p => p.PageSizes(
new
[] {25, 50, 100, 200}))
Thanks in advance!