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

Export RadGrid to Excel & PDF

4 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
$uren
Top achievements
Rank 1
$uren asked on 04 Apr 2011, 12:01 PM
Hi....

I want to Export the RadGrid datas to pdf .... But the problem is "Say if my grid contain value of 10 and if i set the page size to 5... only the visible 5 data only generated as pdf, but i want the second page value too(remaining 5 data)... could any one help with this thing.... please

Thanks in advance..

Regards
Suren

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 04 Apr 2011, 12:32 PM
Hello Suren,

Please examine the following link:
Export overview

<ExportSettings IgnorePaging="true" ...>
</ExportSettings>

Best 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
$uren
Top achievements
Rank 1
answered on 04 Apr 2011, 01:32 PM
IgnorePaging="true" is also not working....

Can u help in export to excel & pdf through a dataset generated in runtime...

this was what i tried...

 protected void Button1_Click(object sender, EventArgs e)
    {
        DataGrid dg = new DataGrid();
        DataSet ds = new DataSet();
        class1 cs = new class1();
        cs.Temp = st;
        ds = cs.DS();
        dg.DataSource = ds;
        dg.ExportSettings.ExportOnlyData = true;          #
        dg.ExportSettings.IgnorePaging = true;         #
        dg.ExportSettings.OpenInNewWindow = true;    #
        dg.MasterTableView.ExportToExcel();          #

    }

 

#   Error  'System.Web.UI.WebControls.DataGrid' does not contain a definition for 'ExportSettings' and no extension method 'ExportSettings' accepting a first argument of type 'System.Web.UI.WebControls.DataGrid' could be found (are you missing a using directive or an assembly reference?)  

0
Daniel
Telerik team
answered on 04 Apr 2011, 02:41 PM
Hello Suren,

Please try to replace DataGrid with RadGrid. We do not have a control named DataGrid.

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
$uren
Top achievements
Rank 1
answered on 05 Apr 2011, 04:28 AM
Its Working thanks a lot...
Tags
Grid
Asked by
$uren
Top achievements
Rank 1
Answers by
Daniel
Telerik team
$uren
Top achievements
Rank 1
Share this question
or