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

Radgrid export exception

3 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeroen Eikmans
Top achievements
Rank 1
Jeroen Eikmans asked on 15 Jun 2010, 01:44 PM
Hi,

we have a radgrid with paging enabled, advanced databinding using the NeedDataSource event and filtering enabled on a column.

When we call MasterTableView.ExportToExcel() we're getting the following error :
[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.RadAjaxControl.OnPagePreRenderComplete(Object sender, EventArgs e) +83
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8699938
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029

The ExportSettings.IgnorePaging is set to true. When i change that to false the export does work.
I've read a thread on this forum and the answer to this problem was to use advanced-binding but we're already using that.
We're using Telerik.web.dll 2010.1.519.35

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 15 Jun 2010, 03:58 PM
Hello Roel,

Can you isolate the problem in a simple, runnable demo so that we can debug it on our end?

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
Paul
Top achievements
Rank 1
answered on 12 Oct 2010, 07:32 PM
I have the identical problem.  I was getting the exception but when I turned IgnorePaging to False it worked without error.  Unfortunately I have no simple example because the page is complex.  Any clues?

Thanks,

Paul.
0
Daniel
Telerik team
answered on 15 Oct 2010, 02:32 PM
Hello Paul,

I guess this is a databinding issue, however it is hard to provide to-the-point solution based on the available information. Do you use advanced data-binding? If this is so, please try (for testing purposes) to put a regular ASP.NET button on your page and manually rebind (RadGrid1.Rebind()) RadGrid in its click handler.

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
Tags
Grid
Asked by
Jeroen Eikmans
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Paul
Top achievements
Rank 1
Share this question
or