This is a migrated thread and some comments may be shown as answers.

Getting all data from Kendo Grid (without using paging)

1 Answer 392 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luciano Kaesemodel
Top achievements
Rank 1
Luciano Kaesemodel asked on 15 Jan 2014, 10:58 AM
Hello...

I have a Kendo Grid using paging ... I need to get all data from that grid without refreshing/updating the ui grid.
The data will be used to create a pdf.

I tried to change datasource pageSize to total, but that update my actual ui grid as well...

How can I do that?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 17 Jan 2014, 07:52 AM
Hello Luciano,

The idea behind paging is to load only the data that is displayed at any give moment, as this increases the performance of the grid and its usability. This is why the only the currently displayed data is available in the grid's dataSource. If you change the pageSize and the total properties it will affect the widget bound to the dataSource - again this is expected.

In your current configuration there is not a way to get all the data available on the server, as the dataSource only contains the data displayed on the screen. You can get the data using another request to the server and then use it to create your pdf document. 

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Luciano Kaesemodel
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or