Export dynamic Kendo Grid to Excel

4 posts, 0 answers
  1. Arun
    Arun avatar
    4 posts
    Member since:
    Jan 2016

    Posted 16 Jan Link to this post

    I have a grid which has columns created dynamically based on different engagements. now i need to export the grid as-is from an active page to excel. I am new to kendo UI and any help on how to this would be much appreciated.

    Thanks.

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 19 Jan Link to this post

    Hello Arun,

     

    This should be possible out of the box when a excel export button is added to the toolbar. Please refer to the http://dojo.telerik.com/AHiWe/2 example. 

     

    Please refer to the toolbar help article and Grid / Export to Excel demo. 

     

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Arun
    Arun avatar
    4 posts
    Member since:
    Jan 2016

    Posted 20 Jan Link to this post

    Thanks for the reply, Boyan.

    The hard part is all done. The issue is only with the export. I have added the button and the data bind is all done. But the issue is when i click the button,i get all the column values, but i have a group column which may have # of columns vary based on user input is not getting downloaded properly. i mean the column headers, instead of having the actual values, have the variable name. please refer to attached.

     

  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 22 Jan Link to this post

    Hello Arun,

     

    In order to investigate the issue we would need an isolated runnable example that replicates the issue. If it is possible you can extract the problem in sample dojo example. 

     

    Regards,
    Boyan Dimitrov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready