LineSeriesDefinition Binding on Visibility

2 posts, 0 answers
  1. harald
    harald avatar
    3 posts
    Member since:
    Oct 2010

    Posted 30 Oct 2012 Link to this post

    Hello,

    way does the binding on the Visibility property not work? 

    below my code, I'm using RadControls for WPF Q2 2012 SP1\Binaries\WPF40\Telerik.Windows.Controls.Charting.dll

    thanks!

    <telerik:RadChart x:Name="RCVUtilizationAverage" Grid.Column="0" >
         <telerik:RadChart.SeriesMappings>
             <telerik:SeriesMapping LegendLabel="Plan-Auslastung" ItemsSource="{Binding PlanUtilizations}">
                  <telerik:SeriesMapping.SeriesDefinition>
                       <telerik:LineSeriesDefinition ShowItemLabels="False" Visibility="{Binding PlanUtilizationsVisibility, Mode=TwoWay}" />
                   </telerik:SeriesMapping.SeriesDefinition>
    ....

    private SeriesVisibility _PlanUtilizationsVisibility = SeriesVisibility.Visible;
    public SeriesVisibility PlanUtilizationsVisibility { 
        get { return _PlanUtilizationsVisibility; } 
        set { _PlanUtilizationsVisibility = value; } 
    }



  2. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 01 Nov 2012 Link to this post

    Hello,

    Please, find attached a sample application, which demonstrates how to bind the visibility of a Line series. It works as expected on our side. In case the issue persists, please, update it so that it is reproducible and send it back to us to inspect further.

    All the best,
    Nikolay
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top