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

Angularjs kendo grid export to execl

5 Answers 484 Views
Grid
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 21 Oct 2015, 12:31 AM
I am not seeing anything about how to export the angular kendo grid to excel.  Is this a manual export or is that a flag to enable to turn it on?

5 Answers, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 22 Oct 2015, 11:39 AM
Hi Steve,

Thank you for contacting us.

The built-in export to excel functionality could be easily enabled with the following settings:
toolbar: ["excel"],
excel: {
    fileName: "Kendo UI Grid Export.xlsx",
    proxyURL: "//demos.telerik.com/kendo-ui/service/export",
    filterable: true
}

The first one will display the "Export to Excel" button in the toolbar of the Grid and the second one will configure the export. 

For your convenience, following is a dojo example with angular and enabled export:
Please note that you need to include jszip to your page:
<script src="//kendo.cdn.telerik.com/2015.3.930/js/jszip.min.js"></script>

If other questions arise, please do not hesitate to contact us again.


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
steve
Top achievements
Rank 1
answered on 22 Oct 2015, 03:20 PM

I have notice not all property for the JS/MVC components work exactly the same with angular, so I just wanted to be sure.  For example, the allowCopy doesn't work with the angular code.

 

Thanks Konstantin.  

0
Konstantin Dikov
Telerik team
answered on 26 Oct 2015, 10:02 AM
Hello Steve,

I have tested the allowCopy property and I was not able to observe any issues with it. You can test the following dojo example, where the allowCopy is working correctly:
Can you please elaborate on what conditions the allowCopy property is not working on your side?


Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
steve
Top achievements
Rank 1
answered on 26 Oct 2015, 06:08 PM

Instead of  

selectable: "multiple cell", 

somewhere I saw a different way to set it up in the <div> tag like

k-selectable="'multi cell'"

 

I change it and it works correctly.  I am a bit new to the Angularjs approach, i am guessing the setup of the properties and attributes are the same for js and angularjs for the telerik controls? 

0
Konstantin Dikov
Telerik team
answered on 27 Oct 2015, 01:22 PM
Hello Steve,

I am glad to see that everything is working correctly after changing the selectable mode to "multiple cell". As for the "multi cell", I could only assume that you came across a selectable mode for the RadGrid for  ASP.NET AJAX.


Kind Regards,
Konstantin Dikov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
steve
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
steve
Top achievements
Rank 1
Share this question
or