PDF Cell Style Customization
18 Nov 20181 minute to read
Conditional cell formatting
TreeGrid cells in the exported PDF can be customized or formatted using PdfQueryCellInfo event. In this event, we can format the treegrid cells of exported PDF document based on the column cell value.
In the below sample, we have set the background color for Duration column in the exported document by args.cell and backgroundColor property.
Theme
PDF export provides an option to include theme for exported PDF document.
To apply theme in exported PDF, define the theme in PdfExportProperties.
NOTE
By default, material theme is applied to exported PDF document.
You can refer to ourASP.NET MVC Tree Gridfeature tour page for its groundbreaking feature representations. You can also explore ourASP.NET MVC Tree Grid exampleto knows how to present and manipulate data.