3 Answers, 1 is accepted
0
Hello Nico,
the RadOrgChart does not have such built-in feature. However, with some custom implementation, the desired functionality (regarding the PDF export) could be achieved. Bellow you could find an example, demonstrating such implementation.
Regards,
Nencho
Telerik
the RadOrgChart does not have such built-in feature. However, with some custom implementation, the desired functionality (regarding the PDF export) could be achieved. Bellow you could find an example, demonstrating such implementation.
Regards,
Nencho
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
0

Giuseppe
Top achievements
Rank 1
answered on 22 Dec 2014, 09:57 AM
Hello,
can I adopt the same solution for RadDiagram?
can I adopt the same solution for RadDiagram?
0

Xavier
Top achievements
Rank 1
answered on 22 Dec 2014, 10:42 PM
This is only working for one page, is it possible to print/export to pdf the complete org chart?
I use your code:
var doc = jsPDF("landscape", "pt", "a3");
html2canvas(document.getElementById("RadOrgChart"), {
onrendered: function (canvas) {
var data = canvas.toDataURL("image/jpeg");
var pageWidth = doc.internal.pageSize.width;
var pageHeight = doc.internal.pageSize.height;
var width = canvas.width;
var height = canvas.height;
doc.addImage(data, "JPEG", (pageWidth - width) / 2, (pageHeight - height) / 2, width, height);
doc.save("scheduler.pdf");
}
});
I use your code:
var doc = jsPDF("landscape", "pt", "a3");
html2canvas(document.getElementById("RadOrgChart"), {
onrendered: function (canvas) {
var data = canvas.toDataURL("image/jpeg");
var pageWidth = doc.internal.pageSize.width;
var pageHeight = doc.internal.pageSize.height;
var width = canvas.width;
var height = canvas.height;
doc.addImage(data, "JPEG", (pageWidth - width) / 2, (pageHeight - height) / 2, width, height);
doc.save("scheduler.pdf");
}
});