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

Exporting in RadTabstrip

1 Answer 50 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Regeesh Joseph
Top achievements
Rank 1
Regeesh Joseph asked on 27 Dec 2011, 09:08 AM
Hai,

I have a radtabstrip with 4 tabs. Each tab contains one grid. I have to export the data on these 4 grids to different formats like pdf, excel etc. on clicking a "Print Report" button on the page. Is there any way to this? Its very urgent. Plz help.

Thanks,

Regeesh

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 28 Dec 2011, 01:49 PM
Hi Regeesh,

You could get reference to the grid instance in the "Print Report" button's click event handler and then call the respective export function of the RadGrid's MasterTableView. However before calling the export function you need to make sure that the tab is clicked and its content is shown on the page.

You code should look like this:

protected void PrintReport_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.ExportToPdf();
}

Give this suggestion a try and check whether implements the desired functionality.

Kind regards,
Andrey
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
TabStrip
Asked by
Regeesh Joseph
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or