This is a migrated thread and some comments may be shown as answers.

Chart doesn't recognise changes to nullable values

1 Answer 43 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Brendan
Top achievements
Rank 1
Brendan asked on 06 Apr 2011, 07:45 AM
Hi,

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.

Example:
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 11 Apr 2011, 03:55 PM
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;



Greetings,
Tsvetie
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
Tags
Chart
Asked by
Brendan
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or