You have an example of how to export to Excel and PDF here:
https://www.telerik.com/kendo-angular-ui/components/grid/api/ExcelCommandDirective/
But how can we call it from the component and not from the HTML view? I want to add both Export Icons to a dropdown list if there is an easier way to implement this please reply.
In general most of the code examples are only for the HTML view based on <ng-...> tags and not how to do the same thing from the component. It would be really helpfull if you could also add examples of doing the same actions from the components.