cannot export RadGridView with in UserControl

3 posts, 0 answers
  1. kanna
    kanna avatar
    28 posts
    Member since:
    Aug 2007

    Posted 28 Sep 2012 Link to this post

    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. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 28 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. kanna
    kanna avatar
    28 posts
    Member since:
    Aug 2007

    Posted 01 Oct 2012 Link to this post

    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

Back to Top