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

2 posts, 0 answers
  1. Jun Tang
    Jun Tang avatar
    5 posts
    Member since:
    Dec 2009

    Posted 17 Nov 2011 Link to this post

    <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
  2. Sia
    Admin
    Sia avatar
    756 posts

    Posted 22 Nov 2011 Link to this post

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

Back to Top