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

LineSeriesDefinition Binding on Visibility

1 Answer 91 Views
Chart
This is a migrated thread and some comments may be shown as answers.
harald
Top achievements
Rank 1
harald asked on 30 Oct 2012, 10:27 AM

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; } 
}



1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 01 Nov 2012, 07:45 AM
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.

Tags
Chart
Asked by
harald
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or