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

cannot export RadGridView with in UserControl

2 Answers 30 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
kanna
Top achievements
Rank 1
kanna asked on 28 Sep 2012, 08:50 AM
Hi,


I am using RadGridView for Silverlight 5.
When i am using Radchart and Radgrid in the same page exporting those to single PDF it is working fine.
But I am having N number grids in one Usercontrol  and N Number charts in to another UserControl and i am including those usercontrols in to  Main page.
In Main page i am having a button when the use clicking the button it will export all Charts and grids in to PDF.

But when i am exporting all Chart controls it is exporting porperly. When I am exporting with grid controls it is throwing the error.

I am attaching the error message also. Please suggest me a solution to resolve the problem.

Regards,
Kannan S

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 28 Sep 2012, 12:28 PM
Hello,

You will need to change the AddCellValue method a little bit in order to can export string.Empty values. Please add this additional code:

if(!string.IsNullOrEmpty(value))
           {
               Span span = newSpan();
               span.Text = value;
               paragraph.Inlines.Add(span);
           }

Regards,
Didie
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
kanna
Top achievements
Rank 1
answered on 01 Oct 2012, 07:01 AM

Hello Didie,

Thanks for your solution. Now i am able to export the records. But when i am exporting the grid records in PDF it is not showing data properly. I attached the Image also for your reference.Can you please help me to resolve the issue.

Regards,
Kannan S

Tags
GanttView
Asked by
kanna
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
kanna
Top achievements
Rank 1
Share this question
or