Thursday, March 7, 2024

How to export div to PDF in Telerik

 https://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/functionality/export-html-elements


 function exportPdfOnClient() {

        var editorHtml = $find("<%=RadEditor1.ClientID%>").get_html(true);

        var dummyContainer = $telerik.$("#dummyContentWrapper");

        dummyContainer.html(editorHtml);

        $find("<%=RadClientExportManager1.ClientID%>").exportPDF(dummyContainer);

        dummyContainer.html("");

    }

No comments:

Post a Comment