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

RadChart - No data to display"

2 Answers 92 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 03 Feb 2012, 05:01 PM
Hi

I am working on RadCharts, one of the requirement is to display "No data to display" or some custom message when there the datasource is empty.

I am currently using 2011.1.419.1040

Please advise.

2 Answers, 1 is accepted

Sort by
0
Rahul
Top achievements
Rank 2
answered on 04 Feb 2012, 06:19 AM
Hi David,

             Please check out below Code for your requirement.

chart.DefaultView.ChartArea.IsNoDataMessageEnabled = true;
chart.DefaultView.ChartArea.NoDataString = "No Data To Display";


Regards
Rahul
0
Dragos
Top achievements
Rank 1
answered on 07 Feb 2012, 04:19 PM
Hello,

Is there a way to accomplish the same thing for the razor version in MVC ?

THX 
Tags
Chart
Asked by
Ravi
Top achievements
Rank 1
Answers by
Rahul
Top achievements
Rank 2
Dragos
Top achievements
Rank 1
Share this question
or