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

Linkbutton text is exporting blank while exporting to pdf

3 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
San
Top achievements
Rank 1
San asked on 06 Dec 2012, 02:04 PM
Hi
i am working on exporting grid data into pdf but if the column type is link button then the linkbutton text is exporting as blank.into pdf file
how could i rectify this issue without using any event(like itembound etc)
please suggest me it's really very urgent.

Note: my export setting is excelML  and  in case of excel exporting it's working fine.

Thanks
Santosh

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 10 Dec 2012, 03:34 PM
Hi Santosh,

Thank you for contacting us.

A possible solution is to set ExportOnlyData to false. This way it is not necessary to hook any events.

Give it a try and let me know if you need further assistance.

Greetings,
Kostadin
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.
0
San
Top achievements
Rank 1
answered on 12 Dec 2012, 06:04 AM
Hi Kostadin
if i set ExportOnlyData to false pdf exporting is working but since export setting is excelML exporting excel is not working.
both exporting should work in case of excelML  export setting.

Thanks
Santosh
0
Princy
Top achievements
Rank 2
answered on 14 Dec 2012, 07:57 AM
Hi,

Try setting the ExportOnlyData to 'False' only while Exporting to pdf. Please take a look into the following code snippet.

C#:
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
    if (e.CommandName == RadGrid.ExportToPdfCommandName)
    {
        RadGrid1.ExportSettings.ExportOnlyData = false;
    }
}

Regards,
Princy.
Tags
Grid
Asked by
San
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
San
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or