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

Can not binding ShowItemLabels property to a checkbox's isChecked property?

1 Answer 14 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jun Tang
Top achievements
Rank 1
Jun Tang asked on 18 Nov 2011, 04:18 AM
<telerik:SeriesMapping.SeriesDefinition>
                        <telerik:LineSeriesDefinition AxisName="TempAxixYMain"
                            ShowItemLabels="{Binding ElementName=chkDisplayValue,Path=isChecked}"
                                  ShowItemToolTips="True"
                          x:Name="TempLine">
                        </telerik:LineSeriesDefinition>
                    </telerik:SeriesMapping.SeriesDefinition>
i use the xaml above to bind ShowItemLabels property of SeriesDefinition to a checkbox, but it doesn't work (2011 Q2).
So i have to set the ShowItemLabels's value in the "checked" and "uncheck" events of checkbox

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 22 Nov 2011, 02:48 PM
Hello Jun Tang,

You can use the same approach as the one used in our "Simple Filtering" Demo. Please check the attached solution.

Regards,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Jun Tang
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or