esquare
esquare

Reputation: 4275

Grid cannot load its state correctly

I have a trouble at my grid when I load state. The paging bar is being broken whenever I do this.

to understand please take a glance through this example: http://dojo.telerik.com/@doktoresperanto/oJiVu

Upvotes: 1

Views: 101

Answers (1)

Atanas Korchev
Atanas Korchev

Reputation: 30671

You also need to pass the data source aggregates because the footer template depends on them (your demo has an "undefined" error because of missing aggregates). Here is how:

grid.dataSource.query({"page":3,"pageSize":7, aggregate: grid.dataSource.aggregate() });

And a live demo: http://dojo.telerik.com/@korchev/oDoPE

Upvotes: 1

Related Questions