How to bind the Chart dynamically..

3 posts, 0 answers
  1. Ritesh
    Ritesh avatar
    2 posts
    Member since:
    Oct 2012

    Posted 01 Nov 2012 Link to this post

    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. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 06 Nov 2012 Link to this post

    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.

  3. DevCraft banner
  4. Ritesh
    Ritesh avatar
    2 posts
    Member since:
    Oct 2012

    Posted 06 Nov 2012 Link to this post

    Thanks i got it..:)
Back to Top