Cell Borders Not Appearing on a Grid Exported To PDF

2 posts, 0 answers
  1. Rich Reuter
    Rich Reuter avatar
    14 posts
    Member since:
    Aug 2012

    Posted 28 Apr 2015 Link to this post

    I'm attempting to export a grid with cellborders set but I am not able to apply the formatting.  All of my other formatting changes (font, background/foreground colors) work just fine.  Is there another way I should be attempting to set the borders?


    // grid = RadGridView
    grid.ElementExportingToDocument += GridOnElementExportingToDocument;
    private void GridOnElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e)
        GridViewDocumentVisualExportParameters visualParams  = ((GridViewDocumentVisualExportParameters)e.VisualParameters);
        var border = new CellBorder(CellBorderStyle.Thick, new ThemableColor(Colors.Black));
        visualParams.Style = new CellSelectionStyle
            FontSize = GatwickPrintSettings.BodyCellFontSize,
            FontFamily = new ThemableFontFamily(GatwickPrintSettings.FontFamily),
            CellBorders = new CellBorders(border), // !! Has no effect
            VerticalAlignment = RadVerticalAlignment.Center

  2. Stefan X1
    Stefan X1 avatar
    486 posts

    Posted 01 May 2015 Link to this post

    Hello Rich ,

    Thank you for your feedback.

    I managed to reproduce the issue and I am logging it in our Feedback Portal as a Bug Report. You can track its progress here: CellBorders are not applied when setting a Style for GridViewDocumentVisualExportParameters.

    We have also updated your Telerik points as a gratitude for reporting this issue.

    Best Regards,

    See What's Next in App Development. Register for TelerikNEXT.

  3. DevCraft banner
Back to Top