Possible to disable the legend through code?

2 posts, 0 answers
  1. Allan
    Allan avatar
    24 posts
    Member since:
    Jun 2009

    Posted 25 Jun 2009 Link to this post


    Is it possible to disable the legend without using a custom style? I'd like to do it in the C# code if possible.

  2. Giuseppe
    Giuseppe avatar
    2363 posts

    Posted 01 Jul 2009 Link to this post

    Hello Allan,

    You can achieve the desired functionality like this:

    RadChart1.DefaultView.ChartLegend.Visibility = System.Windows.Visibility.Collapsed; 

    Hope this helps.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top