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

RadChart Series.Clear() Problem

1 Answer 115 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Anna
Top achievements
Rank 1
Anna asked on 19 Dec 2011, 05:35 PM
I am currently setting up a RadChart with custom filters and can not seem to get the chart to clear if there is no data when ViewState is enabled. When I set ViewState to false it works great, the only problem is the chart OnClick event does not fire if ViewState is set to false, and the click event is something this chart has to have.

For example, this should clear the chart so it shows the error message if there is no data returned:

dataPoints= bll.GetAllCustomerDataPoints(param1, param2);
 
if (dataPoints.Count > 0)
{
     UpdateCustomerChart(dataPoints);
}
else
{
     RadChart1.Clear();
}

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 22 Dec 2011, 11:35 AM
Hello,

We were unable to reproduce the problems you are experiencing in our local tests -- please review the attached sample applications that demonstrate our observations (clearing chart with Viewstate, click event with disabled viewstate) and let us know if we are missing something out.


Kind regards,
Giuseppe
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Anna
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or