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

Custom Paging and Exporting (Page Size)

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 30 Jan 2017, 10:33 PM

We are using the RadGrid and it's custom paging abilities.

We have a grid where we only bind the "PageSize" (typically 10) to the grid and set the Virtual Item Count equal to the total number of items. (in this case, 897).

When we export to Excel, we have to set the "Page Size" property on the Grid (not the master table view) to the total number of items, rebind the grid to the full dataset and then allow the export.  Otherwise, it will only export the current page.

We've noticed that after doing that, in the PageSize dropdown, there are items for the default (10, 20, 50) as well as the item number i exported which is 897.

How can i prevent that value from being saved into the PageSize dropdown.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Feb 2017, 06:01 PM

Hello Shawn,

Would it be possible to provide a screenshot of what you'd like to achieve? A simple runnable project with a dummy DataSource which I can test to reproduce your scenario would be very helpful too.

Thank you!

Regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Shawn
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or