This is a migrated thread and some comments may be shown as answers.

Rendering of diagram on the server (with node or something else?)

2 Answers 24 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
iFACTS Admin
Top achievements
Rank 1
iFACTS Admin asked on 16 Jul 2019, 08:49 AM

Hi!

I am using Kendo diagram on the client and we've managed to do it really easy.

But we had a request for generating the diagram image to include it in reports generated on the server.

Tried to search the API docs and forums for a solution but couldn't find any. 

The current approach we're taking is to load kendo js lib into nodejs to generate the graph and save it. Our problem with this approach is that Kendo depends on jQuery and we can't seem to load it in a way that Kendo would know how to use.

Do you have any suggestion on our approach or a different approach on which we can achieve our result?

2 Answers, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 17 Jul 2019, 01:00 PM
Hello,

We have a project available with inkscape in this repository using the Kendo UI Chart and the same approach should be applicable for the Kendo UI Diagram:

https://www.telerik.com/forums/export-chart-on-the-server

Diagram methods that can be used:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/methods/exportsvg
https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/methods/exportpdf
https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/methods/saveaspdf

Essentially what it does is posting the generated SVG or PDF to the server, however the diagram should still be generated client-side. For this, you will need to have jQuery in the window scope.

Let me know in case you need further assistance.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
iFACTS Admin
Top achievements
Rank 1
answered on 18 Jul 2019, 06:43 AM

[quote]Alex Hajigeorgieva said:

.... however the diagram should still be generated client-side.

/quote]

This is the limitation that we've ran into as well. We have no client to render the chart on. I was hoping someone else ran into the same issue :)

Tags
Diagram
Asked by
iFACTS Admin
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
iFACTS Admin
Top achievements
Rank 1
Share this question
or