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:
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();
}