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

Make xml templates at run-time and load it on fly.

1 Answer 37 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Claudio
Top achievements
Rank 1
Claudio asked on 26 Sep 2011, 03:09 PM
Hi forum,
I'm evaluating the ASP.NET controls but I don't understand if they are right for my application.
My application will run into a closed network and I will be splitted in two parts.

1. Configuration interface
My users must configure a chart and save the template.
Into the template is not relevant if there is the connection string and the sql statement but it's important that it includes every series and chart configuration.
This part of my application can be a standalone winform application (I can buy also the winform components collection) but my users must create a chart without use VisualStudio (just my compiled application) and export it in some way (xml, stream, ....).
I didn't find a way to use the chart wizard of the winform chart control or the asp.net chart control at run-time.

2. End-user interface
This part of my application must be an ASP.NET webform (or webcontrol) where my users must insert the chart template and the connection string and the sql statement.
The sql statement inserted must be compatible with the statement used during the chart template creation.


Can I do it with you chart control?
Have you got some code sample about it?


Sorry for my english, I hope you understand me.

Please, help me!
Thank you,
Claudio

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Sep 2011, 11:08 AM
Hi Claudio,

The chart wizard has not been designed for stand-alone usage and it is not exposed through the public API. You will need to build a similar configuration panel by yourself. You can find some examples in our online demos, e.g. this one shows how to add/update series and values in the chart. This will allow you to include only the functionality you need to expose. Once configured, you can export the chart to a memory stream or directly to an image, using different overloads of the RadChart.Save method. If you need to create a template for the visual appearance only, you can export it to a custom skin and apply it later as shown in this help topic.

Best regards,
Ves
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Claudio
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or