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

Setting chart properties

1 Answer 40 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 06 Feb 2009, 02:20 PM
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.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Feb 2009, 09:06 AM
Hi Martin,

You can simply clone the existing chart:

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

Sincerely,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Martin
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or