Export to PDF and Slow Grouping

3 posts, 0 answers
  1. Ariel
    Ariel avatar
    2 posts
    Member since:
    May 2016

    Posted 19 Sep Link to this post

    Hey guys, I hope everyone is having a great day :)


    I am having a couple of issues with the Grid that I can't find a workaround by myself and would like to request your help.


    The first one regards exporting to PDF. When I call the grid.saveAsPDF function the grid horizontal scroll will overflow, you can check the picture attached in this thread. I imagine that you overflow it to export the grid's content to the PDF, is there any workaround to hide this behavior though?


    The second issue happens when I am grouping a grid with a large dataset.


    We GET from the backend a huge arraythat we want to group in a non paginated grid, it has 2000 + objects.


    The problem is that when I group the data Kendo creates up to 8 thousand angular Watchers and the page becomes unusable. Is there any workaround here? Bind once? Server side grouping with paging?


    Thanks in advance for you help.


  2. Ariel
    Ariel avatar
    2 posts
    Member since:
    May 2016

    Posted 20 Sep Link to this post

  3. Boyan Dimitrov
    Boyan Dimitrov avatar
    1728 posts

    Posted 21 Sep Link to this post

    Hello Ariel,

    To achieve horizontal scrolling with the Kendo UI Grid, the width of all columns should be explicitly defined in pixels and their sum should exceed the width of the Grid.Given this I prepared a sample http://dojo.telerik.com/ahEfo example. The Kendo UI Grid is stretched to occupy the entire width of the pdf document. 

    Such amount of data can definitely cause some performance issue. In such cases I would suggest implementing server-grouping/paging. Please refer to the serverGrouping for more information and sample code. 

    Boyan Dimitrov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top