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

Export not generating output

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
TonyG
Top achievements
Rank 1
TonyG asked on 01 Jun 2012, 01:02 AM

I have a working ajaxified grid to which I'm adding new PDF/Excel export capability. In the ItemCommand event I'm setting boolean isPdfExport or isExcelExport. It loops through ItemCreated and ItemDataBound for all expected items. It goes through PreRender for the Page and PreRender for the grid.

But then the web page with the grid re-renders.

There is no export. and the re-rendered page no longer includes the command buttons.

This is a nested page a user control containing a tab/multipage, and one of the pageviews containing a usercontrol that has this grid.

Now this might be silly but in the event handlers I specifically just tell it to return once I know we're exporting. Do I need to manually set the columns? For example:

if (isExcelExport)
{
    if (e.Item is GridHeaderItem)
    {
    }
    if (e.Item is GridDataItem)
    {
    }
    if (e.Item is GridFooterItem)
    {
    }
    return;
}

The exact same behavior is seen for IE9 and FF12.

Using the very latest build of the controls.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 04 Jun 2012, 03:25 PM
Hi,

 As I have mentioned in the support ticket that you have opened regarding this. The ajax request needs to be canceled in order for the export to work correctly. In order to avoid duplicate posts we will continue any further communication in the support ticket.

Regards,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
TonyG
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or