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

Export Grid from Tabs

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 15 Apr 2011, 09:38 PM
I have page with a tabstrip that has two tabs.  Each tab has a grid along with a button to export the grid. 

The first page exports, however the grid on the second tab will not export. 

It does not throw an error, it fires the Grid1.MasterTableView.ExportToExcel() but does not export.  No prompt to save or open.  I have looked over the code and can't see what's causing this.

Is this a limitation of exporting and tabs?

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 18 Apr 2011, 03:45 PM
Hello Michael,

This could happen if the button that initiates the export is ajaxified. If this is so, please visit the following link:
Export from ajaxified grid

If this is not the case, please post your markup using the "code block" button from the menu above.

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Mike
Top achievements
Rank 1
answered on 18 Apr 2011, 04:31 PM
Yep,
That's exactly what I ended up having to do.

<script type="text/javascript">
   function onRequestStart(sender, args)
   {
       if (args.get_eventTarget().indexOf("btnExport") >= 0)
           args.set_enableAjax(false);
   }
</script>  
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Mike
Top achievements
Rank 1
Share this question
or