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

Customised Layout Databind Issue

3 Answers 88 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Rav Panchalingam
Top achievements
Rank 1
Rav Panchalingam asked on 28 Sep 2009, 04:02 AM
Hi All,

I have previously used an ArrayList as the ItemSource for my chart, this worked correctly
RadChart1.ItemSource = GetData(); 
Where GetData returned the ArrayList.

I know would like to customise the layout of my RadChart, I have done this in XAML
<telerik:RadChart x:Name="RadChart1" telerik:StyleManager.Theme="Vista" UseDefaultLayout="False">            
            <Grid> 
               <Grid.RowDefinitions> 
                   <RowDefinition Height="1*" /> 
                   <RowDefinition Height="6*" /> 
               </Grid.RowDefinitions> 
               <Grid.ColumnDefinitions> 
                   <ColumnDefinition /> 
               </Grid.ColumnDefinitions> 
               <telerik:ChartTitle Content="Sample Report" Grid.Row="0" Grid.Column="0" 
                                   VerticalAlignment="Center" HorizontalAlignment="Center" 
                                   TextElement.FontWeight="Bold" TextElement.FontSize="24" /> 
               <telerik:ChartArea x:Name="ChartArea1" Grid.Row="1" Grid.Column="0" /> 
            </Grid> 
        </telerik:RadChart> 
And now neither RadChart1.ItemSource nor ChartArea1.ItemSource will correctly display any graph data ("No Data Series")

Also I cannot add a dataseries to the dataseries collection using
ChartArea1.DataSeries.Add( 
I get the following error
Error   1   'Telerik.Windows.Controls.Charting.DataSeriesCollection' does not contain a definition for 'Add' and no extension method 'Add' accepting a first argument of type 'Telerik.Windows.Controls.Charting.DataSeriesCollection' 
 

Can anyone offer help on this please?

Rav

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 30 Sep 2009, 01:54 PM
Hi Rav,

I am afraid this is a limitation in the current version of the control. It will be fixed in the next version.

Sincerely,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bill Sivill
Top achievements
Rank 1
answered on 09 Jun 2010, 03:09 PM
Was this fixed?  I am having the same issue with Q10 charts.
0
Velin
Telerik team
answered on 14 Jun 2010, 05:02 PM
Hello Bill Sivill,

This feature is available for a long time now. The SeriesMapping class exposes the ChartAreaName property that makes the relation between data and the ChartArea instance. Here is an article explaining this in more details.

Hope this will help.

Regards,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Rav Panchalingam
Top achievements
Rank 1
Answers by
Ves
Telerik team
Bill Sivill
Top achievements
Rank 1
Velin
Telerik team
Share this question
or