I use Kendo ui and i'm discover "Export Grid to pdf"
But I have just one problem.
It’s working but when I have a lot of data in grid who display 10 item per page, the export take just 10 first but no the rest. Do you have an advice for that?
Thanks you
1 Answer, 1 is accepted
0
Atanas Korchev
Telerik team
answered on 13 Jun 2014, 06:08 AM
Hello,
The export to pdf code library does this on purpose. You can avoid this by not calling the ToDataSourceResult method:
OLD:
public FileResult Export([DataSourceRequest]DataSourceRequest request)
{
IEnumerable products = db.Products.ToDataSourceResult(request).Data;
NEW:
public FileResult Export([DataSourceRequest]DataSourceRequest request)
{
IEnumerable products = db.Products.ToList();
Regards,
Atanas Korchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!