Remove Series from Chart

Thread is closed for posting
2 posts, 1 answers
  1. Ryan Hertz
    Ryan  Hertz avatar
    3 posts
    Member since:
    Jun 2009

    Posted 16 Mar 2010 Link to this post

    I'm having some difficulty in figuring out how to remove a series programmatically.

    I am attempting something like:

    If RadChart1.Series.Count = 3 Then RadChart1.Series(2).Remove() 

    To which I receive:

    Object reference not set to an instance of an object.

    Thanks in advance,

  2. Answer
    Velin avatar
    391 posts

    Posted 18 Mar 2010 Link to this post

    Hi Ryan Hertz,

    To remove a series from the series collection of RadChart you can use code like this:

    Best wishes,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top