Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have kendo tab strip with Three 3 tabs.

i have button in third Tab (export to PDF ) where i need to download Tab 2 and Tab 3 grid.

What I have tried:

I tried with below code its downloading only Tab 3 Graph.

function getPDF(selector) {
    kendo.drawing.drawDOM($(selector)).then(function (group) {
        return kendo.drawing.exportPDF(group, {
            margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" }
        });
    })
        .done(function (data) {
            // Save the PDF file
            kendo.saveAs({
                dataURI: data,
                fileName: "ChartReport.pdf"
            });
        });
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900