alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class PdfExportProperties

    Defines pdf export customization options.

    Inheritance
    object
    PdfExportPropertiesBase
    PdfExportProperties
    TreeGridPdfExportProperties
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    PdfExportPropertiesBase.FileName
    PdfExportPropertiesBase.Footer
    PdfExportPropertiesBase.Header
    PdfExportPropertiesBase.IncludeHiddenColumn
    PdfExportPropertiesBase.IncludeTemplateColumn
    PdfExportPropertiesBase.PageOrientation
    PdfExportPropertiesBase.PageSize
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class PdfExportProperties : PdfExportPropertiesBase

    Constructors

    PdfExportProperties()

    Declaration
    public PdfExportProperties()

    Properties

    AllowHorizontalOverflow

    Defines the overflow of columns for the pdf grid.

    Declaration
    public bool AllowHorizontalOverflow { get; set; }
    Property Value
    Type
    bool

    BeginCellLayout

    Gets or sets the value which is going to apply/customize the PDF Grid cell graphics. This event is raised when laying out a cell on a page.

    <SfGrid DataSource="@Orders" @ref="DefaultGrid" Toolbar="@(new List<string>() { "PdfExport" })" AllowPdfExport="true" >
     <GridEvents OnToolbarClick="ToolbarClickHandler" TValue="Order"></GridEvents>
      ........
    </SfGrid>
    @code{
     public async Task ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
     {
       if (args.Item.Id == "Grid_pdfexport")  //Id is combination of Grid's ID and itemname
       {
           PdfExportProperties ExportProperties = new PdfExportProperties();
           ExportProperties.BeginCellLayout = new PdfGridBeginCellLayoutEventHandler(BeginCellEvent);
           await this.DefaultGrid.PdfExport(ExportProperties);
       }
     } 
     private void BeginCellEvent(object sender, PdfGridBeginCellLayoutEventArgs args)
     {
       ........
     }
    Declaration
    public PdfGridBeginCellLayoutEventHandler? BeginCellLayout { get; set; }
    Property Value
    Type
    PdfGridBeginCellLayoutEventHandler

    Columns

    Defines the columns which are to be customized for Export alone.

    Declaration
    public List<GridColumn>? Columns { get; set; }
    Property Value
    Type
    List<GridColumn>

    DataSource

    Defines the data source dynamically before exporting.

    Declaration
    public IEnumerable<object>? DataSource { get; set; }
    Property Value
    Type
    IEnumerable<object>

    DisableAutoFitWidth

    Defines the Grid's Column width to Pdf Column width. This can be also enables AllowHorizontalOverflow API internally.

    Declaration
    public bool DisableAutoFitWidth { get; set; }
    Property Value
    Type
    bool

    EndCellLayout

    Gets or sets the value which is going to apply/customize the PDF Grid cell graphics. This event is raised when you have finished laying out a page.

    <SfGrid DataSource="@Orders" @ref="DefaultGrid" Toolbar="@(new List<string>() { "PdfExport" })" AllowPdfExport="true" >
     <GridEvents OnToolbarClick="ToolbarClickHandler" TValue="Order"></GridEvents>
    ........
    </SfGrid>
    @code{
     public async Task ToolbarClickHandler(Syncfusion.Blazor.Navigations.ClickEventArgs args)
     {
       if (args.Item.Id == "Grid_pdfexport")  //Id is combination of Grid's ID and itemname
       {
           PdfExportProperties ExportProperties = new PdfExportProperties();
           ExportProperties.EndCellLayout = new PdfGridEndCellLayoutEventHandler(EndCellEvent);
           await this.DefaultGrid.PdfExport(ExportProperties);
       }
     } 
     private void EndCellEvent(object sender, PdfGridEndCellLayoutEventArgs args)
     {
       ........
     }
    Declaration
    public PdfGridEndCellLayoutEventHandler? EndCellLayout { get; set; }
    Property Value
    Type
    PdfGridEndCellLayoutEventHandler

    ExportType

    Indicates to export current page or all page.

    Declaration
    public ExportType ExportType { get; set; }
    Property Value
    Type
    ExportType

    HierarchyExportMode

    Defines the hierarchy export mode for the pdf grid.

    Declaration
    public HierarchyExportMode HierarchyExportMode { get; set; }
    Property Value
    Type
    HierarchyExportMode

    IncludeCommandColumn

    Indicates whether to show/hide the command columns in exported excel.

    Declaration
    public bool IncludeCommandColumn { get; set; }
    Property Value
    Type
    bool

    IncludeHeaderRow

    Enable/disable the property to export the Grid column header row.

    Declaration
    public bool IncludeHeaderRow { get; set; }
    Property Value
    Type
    bool

    IsRepeatHeader

    Enable/disable the PDF header repeats every page.

    Declaration
    public bool IsRepeatHeader { get; set; }
    Property Value
    Type
    bool

    IsThemeEnabled

    Enable/Disable the PDF style. If increasing the performance while using large records then disable this property.

    Declaration
    public bool IsThemeEnabled { get; set; }
    Property Value
    Type
    bool

    PdfDetailRowMode

    Gets or sets the mode for exporting detail rows to the PDF file format.

    Declaration
    public PdfDetailRowMode PdfDetailRowMode { get; set; }
    Property Value
    Type
    PdfDetailRowMode
    Remarks

    This property determines how detail rows are exported in PDF format:

    • When set to "Expand", detail rows are exported in their expanded state.
    • When set to "None", only parent rows are exported. The default mode is Expand.

    Theme

    Defines the theme for exported data.

    Declaration
    public PdfTheme? Theme { get; set; }
    Property Value
    Type
    PdfTheme
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved