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

Thread is closed for posting
2 posts, 0 answers
  1. Claudio
    Claudio avatar
    3 posts
    Member since:
    Sep 2011

    Posted 26 Sep 2011 Link to this post

    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 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,
  2. Ves
    Ves avatar
    2926 posts

    Posted 29 Sep 2011 Link to this post

    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,
    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
Back to Top