function exportElement() {
var exp = $find("<%= RadClientExportManager1.ClientID %>");
var divtoPrint = $telerik.$("#divtoPrint");
var originalWidth = divtoPrint.width();
divtoPrint.width("1000px")
// https://www.telerik.com/support/kb/aspnet-ajax/gauge/details/radgauge-with-display-none-does-not-render-properly
$telerik.$("#divtoPrint").find(".RadHtmlChart").each(function (index, elem) {
if (elem && elem.control && elem.control.repaint) {
elem.control.repaint();
}
});
exp.exportPDF($telerik.$("#divtoPrint"));
}
No comments:
Post a Comment