Setting chart properties

Thread is closed for posting
2 posts, 0 answers
  1. Martin
    Martin avatar
    8 posts
    Member since:
    Oct 2008

    Posted 06 Feb 2009 Link to this post

    I have an a user control (.ascx) that contains a default RadChart.  At runtime, based on a user selection, I want to set the properties of the default chart equal to those of a dynamically created chart.  If the code sets each property, this appears to work as expected.  Is there a simple way to assign all properties (e.g. defaultChart = createdChart)?  Or must the properties be looped through and set individually?  Examples would be greatly appreciated.
  2. Ves
    Ves avatar
    2926 posts

    Posted 09 Feb 2009 Link to this post

    Hi Martin,

    You can simply clone the existing chart:

    defaultChart = (RadChart)created Chart.Clone();

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top