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

Capture the Print event?

2 Answers 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ruairi
Top achievements
Rank 1
Ruairi asked on 10 Apr 2018, 02:02 PM

Im using the Kendo UI Editor and I'd like to be able to capture the print event - not the Print Execute command but the actual printing of the document (see attached image).

I realize that there is a onafterprint event (not supported by all browsers) - is this the only way to capture the printing of the Editor content?

2 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 11 Apr 2018, 08:37 AM
Hello Tyler,

As you've mentioned the Editor exposes an execute event, in which you can get the print command, however neither the Editor nor Kendo UI expose an event related to printing the page. Kendo UI has no control over the Print dialog (shown in the screenshot you posted). It is the browser that handles printing regardless of whether you are printing the Editor's content or some other arbitrary content not related to Kendo UI. We cannot suggest an alternative that would allow you to achieve what you are after, since we are not aware of print-related events other than beforeprint and afterprint.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ruairi
Top achievements
Rank 1
answered on 11 Apr 2018, 08:48 AM

Thanks Ivan,

I realize you have no control over print drivers etc.. on client so I thought this would be the response but had to be sure.

Tags
Editor
Asked by
Ruairi
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Ruairi
Top achievements
Rank 1
Share this question
or