Is there a way to generate a static sparkline chart on the server? I'd like to include a sparkline in a system-generated email.
3 Answers, 1 is accepted
answered on 19 Jun 2017, 01:21 PM
The Kendo UI code runs on the client, even when the MVC helpers are used. What they do is render the initialization scripts for the widgets on the client (explanation available here). This being said, there is no server-side representation of the Sparkline available.
One possibility would be to generate the Sparkline on the client and export it to an image format (identical exportImage method is available for the Sparkline). Then, send the image to the server for further use. Possible implementation has been shown in this forum post.
Are there any other SKUs that can accomplish this, like Telerik Reporting or UI for WinForms (e.g. offer an export to jpeg option after programmatically generating the control)?
answered on 21 Jun 2017, 08:17 AM
You should be able to use Telerik Reporting to create a Chart in-memory and then export it on the server. However, I would advise you to also ask about this in the Telerik Reporting forums to get confirmation if this approach is feasible.