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

RadChart Throw Exception on DataBind()

1 Answer 77 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fakhru
Top achievements
Rank 2
Fakhru asked on 27 Jan 2010, 10:04 AM
Hi, I have upload example file for this, because I can't describe the detail for error.
* My bad *

This apps is display sale in year.
It's work fine if I navigate from year that have sale (data), but it throw exception if I choose
another year that has sale (data) from no sale (no data) year.


Best Regards,
Fakhru Rahman

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 29 Jan 2010, 08:31 AM
Hello Fakhru,

It seems there is a problem with the ChartSeries in this case. Please, clear the RadChart.Series collection and re-create the series when changing the value in the ComboBox i.e. add these lines before assigning the chart datasource:

radChart.Series.Clear();
radChart.Series.Add(new ChartSeries());


As a side note -- I have edited your message, so that the link is not displayed. Please, do not upload Telerik assemblies to public servers. You can still upload the project -- just remove the assembly from the archive.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Fakhru
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or