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

How to bind the Chart dynamically..

2 Answers 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ritesh
Top achievements
Rank 1
Ritesh asked on 01 Nov 2012, 03:13 PM

I am able to bind the y axis values dynamically by below code:

<telerik:CategoricalDataPoint Category="Mon" Value="8" />

<telerik:CategoricalDataPoint Category="Tue" Value="3" />
But when i am trying to bind the Value dynamically to a property then its not displaying anything.

 

<telerik:CategoricalDataPoint Category="Mon" Value="{Binding Path=pdMondayEffort}"/>

 

 

pls help..

 

 

 

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 06 Nov 2012, 09:39 AM
Hi Ritesh,

CategoricalDataPoint does not inherit from FrameworkElement, so it does not have DataContext property. If you need to bind the series, please apply the approach shown in this help topic i.e. provide a list of objects as ItemsSource and set CategoryBinding  and ValueBinding properties of the series.

Kind regards,
Ves
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ritesh
Top achievements
Rank 1
answered on 06 Nov 2012, 11:24 AM
Thanks i got it..:)
Tags
General Discussions
Asked by
Ritesh
Top achievements
Rank 1
Answers by
Ves
Telerik team
Ritesh
Top achievements
Rank 1
Share this question
or