Chart doesn't recognise changes to nullable values

2 posts, 1 answers
  1. Brendan
    Brendan avatar
    34 posts
    Member since:
    Oct 2010

    Posted 06 Apr 2011 Link to this post


    I have an application which charts nullable values, and these values are editable via a grid. I have the chart EmptyPointBehavior set to gap so it hides null values and this works fantastic (thanks btw). When the data has a value other than null, changes are shown in the chart as they are made in the grid, however if the value is null, and then changes, the chart does not show the change and it remains invisible.

    5 -> 10 (changes show correctly and instantly)
    5 -> null (the chart hides the point as desired)
    null -> 8 (no point is displayed on the chart)

    If I manually redraw the chart the new value will be shown fine. Is there any way around this so that changes show correctly?
  2. Answer
    Tsvetie avatar
    1517 posts

    Posted 11 Apr 2011 Link to this post

    Hi Brendan,
    Indeed, I was able to reproduce the problem you describe. Unfortunately, the only solution that we can provided for the time being, is to call the Rebind method of the chart, when the grid changes its data. You can disable the animation of the chart before calling its Rebind method, so that the chart reflects the changes instantly. For example:

    RadChart1.DefaultView.ChartArea.EnableAnimations = false;

    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