RadChart legend visibility

3 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    May 2012

    Posted 11 Feb 2014 Link to this post

    I am attempting to place a RadChart with the legend collapsed within the small content RadFluidContentControl of a tileview, but setting the ChartLegend visibility to "Collapsed" does not appear to work.  However, if I utilize the same XAML code within a usercontrol and display the usercontrol in the small content RadFluidContentControl it does collapse the legend.  Any idea how to resolve this using in-line XAML within the RadFluidContentControl rather than utilize a usercontrol for the display of the chart?

    My sample code for the specification of the tileview's content:

    <DataTemplate x:Key="ContentTemplate">
        <telerik:RadFluidContentControl ContentChangeMode="Automatic" State="Normal" NormalToSmallThreshold="250 250" NormalToLargeThreshold="500 500">
          <Grid DataContext="{Binding Source={StaticResource SampleDataSource}}">
           <telerik:RadChart x:Name="chtTrendingChart_Small" telerik:StyleManager.Theme="Windows8" ItemsSource="{Binding Collection}">
                  <telerik:ChartLegend Visibility="Collapsed" />
  2. John
    John avatar
    3 posts
    Member since:
    May 2012

    Posted 13 Feb 2014 in reply to John Link to this post

    Resolved the issue by modifying the code behind but still unsure as to why the visibility setting within the XAML did not work.
  3. DevCraft banner
  4. Martin
    Martin avatar
    1051 posts

    Posted 14 Feb 2014 Link to this post

    Hi John,

    I am glad to hear that you have resolved the issue. However, the RadChart control has many known limitations and issues and one of those is the described issue. Therefore, we decided to create new charting components with better implementation and enhanced performance. You could read about the differences between the components in this article. 


    Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Back to Top