This is a migrated thread and some comments may be shown as answers.

Export to PDF and Slow Grouping

2 Answers 149 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ariel
Top achievements
Rank 1
Ariel asked on 19 Sep 2016, 05:30 PM

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 Answers, 1 is accepted

Sort by
0
Ariel
Top achievements
Rank 1
answered on 20 Sep 2016, 05:29 PM
Bump.
0
Boyan Dimitrov
Telerik team
answered on 21 Sep 2016, 11:47 AM

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. 

Regards,
Boyan Dimitrov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
Ariel
Top achievements
Rank 1
Answers by
Ariel
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or