Hidden column, ClientGroupHeaderTemplate and Export to Excel not working properly

2 posts, 0 answers
  1. Vivido
    Vivido avatar
    3 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 Link to this post

    Hi all,
    I have a grid with a couple of columns with a ClientGroupHeaderTemplate set.
    If the columns are visible, then ExportToExcel command works properly, but when I try to hide these columns ( .Hidden(true) ), exporting resets the header defined by me and shows the default one (Column name: value) in the exported file.
    How can I show the ClientGroupHeaderTemplate if I want these columns hidden?
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 14 Jan 2015 Link to this post

    Hello Riccardo,

     

    The grid doesn't export hidden columns and this is why their group header template isn't taken into account. You may consider customizing the generated workbook to achieve any custom look and feel of the Excel file.

     

    Regards,
    Atanas Korchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top