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

DynamicData/Oryx + RadGrid

3 Answers 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 2
Max asked on 27 Jan 2009, 06:05 PM
I've been using the DynamicRadGrid code referenced in the blog (link) and other posts (link) in the forum, and I finally got it working with my project (seems only to work in Website projects, not Web Application projects - complains about "dynamic" tag prefix)

Now, I'm having issues with the Export functionality, where the following code only displays a blank grid and no download popup.

  protected void btnExport_Click(object sender, EventArgs e)  
  {  
     GridView1.ExportSettings.IgnorePaging = true;  
     GridView1.ExportSettings.OpenInNewWindow = true;  
     GridView1.ExportSettings.ExportOnlyData = true;  
     GridView1.MasterTableView.ExportToExcel();  
  } 

Help!

3 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay Rusev
Telerik team
answered on 28 Jan 2009, 08:27 AM
Hello Max,

For your convenience I've prepared sample application demonstrating how you can export to Excel in DynamicData template.

You can find it attached to this post. However it has one limitation you should set export type to ExcelML.


Greetings,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Max
Top achievements
Rank 2
answered on 28 Jan 2009, 01:28 PM
Nikolay, thanks for the quick reply and updated DynamicRadGrid class.  It turns out the export issue however just was missing the postback trigger on the button.  Doh!

<Triggers> 
  <asp:PostBackTrigger ControlID="btnExport" /> 
</Triggers> 
0
Nikolay Rusev
Telerik team
answered on 28 Jan 2009, 02:10 PM
Hello Max,

I'm glad to hear that I've helped. You must have in mind that when exporting RadGrid you must cancel ajax request in order to export properly.

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Max
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
Max
Top achievements
Rank 2
Share this question
or