Is there a way to enable an email button on the Viewer control? A client of ours was asking.
Thank you!
1 Answer, 1 is accepted
0
Yanislav
Telerik team
answered on 13 Mar 2023, 02:02 PM
Hello Chris,
If I understand you correctly you need to implement a button that sends emails with the PDF document attached. Is that correct?
By design, the PDFViewer is a component whose purpose is to display a PDF document. Sending emails is a completely different functionality and it is up to the developer how to handle such a scenario.
What I can recommend is to create a custom command that sends the email. The PdfViewerToolBarCustomTool configuration allows you to define a custom button. You can hook up for the click event of this button and execute a logic that sends the email.
Although such implementation would fall beyond the support scope of the Telerik UI products, I've made research about how to implement an email-sender in a Blazor app, please review the following resources:
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.