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

Export To Excel

2 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stan Boncic
Top achievements
Rank 1
Stan Boncic asked on 10 Sep 2008, 10:24 AM
I want rad grid to be exporting Excel and in new window as well.

well grid is successfully exporting to Excel but the problem is that it is not opening in new window.

RadGrid1.Exportsetting.OpenInNewWindow = true or false both are not working.

whatever I do it is opening in same window.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Sep 2008, 12:04 PM

Hello Stan,

I tried the same at my end and its working as expected. I'm using 2008.1.415.20 version of  RadControls. Which version are you using? Here's the code that i used:

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

Shinu.

0
Daniel
Telerik team
answered on 10 Sep 2008, 12:07 PM
Hello Stan,

I suppose you are using Microsoft Office 2007 because thus the default behavior of the mentioned version is to open your document in a new window.

Please take a look at this link:
Excel 2007 & Internet Explorer

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Stan Boncic
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Daniel
Telerik team
Share this question
or