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

Grid loses paging after export

2 Answers 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Danny Scheelings
Top achievements
Rank 1
Danny Scheelings asked on 08 Apr 2010, 10:19 AM
Hi,

I have on my page a RadGrid and an ASP Button. Default the Grid has a PageSize of 10. When I click the ASP Button, the Grid is exported to Excel using the default RadGrid export method. The properties I have set for Exporting are:
  • ExportOnlyData = true
  • IgnorePaging = true
  • OpenInNewWindow = true

When the button is clicked, the Grid is correctly (all rows) exported to Excel, but when I perform an action (after the export) on the Grid itself (sorting,paging,etc.) de AllowPaging property of the Grid is set to False and all rows in the Grid are shown on the Page.
When I set the AllowPaging property back to True, after the Export, still all rows in the Grid are shown on the Page.
Offcourse when I set the IgnorePaging property to False, this problem does not occur!

Can anybody help me with this problem?

Thanks,
Danny


P.s. I am using Telerik Controls versie 2009 Q2

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Apr 2010, 08:47 PM
Hello Danny,

Please post your code in this thread so I can examine it. This way I will be able to provide to-the-point answer/solution.
 Note that in most cases you don't have to disable the paging (AllowPaging="False") when you use the IgnorePaging property.

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Danny Scheelings
Top achievements
Rank 1
answered on 09 Apr 2010, 08:24 AM
Hi Daniel,

Thanks for your reply. I traced my problem a little bit further and I found out that the problem was actually not lying in the RadGrid itself, but in the Page. I was using an old (.Net 1.1) method to save ViewState into session. When I disabled this method the problem did not occur anymore.

So, thanks for your help.

Danny
Tags
Grid
Asked by
Danny Scheelings
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Danny Scheelings
Top achievements
Rank 1
Share this question
or