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

JavaScript runtime error: Unable to get property 'value' of undefined

7 Answers 342 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sharif
Top achievements
Rank 1
Sharif asked on 14 Aug 2013, 03:20 PM
I get javaScript error when my model return nullable Int.  I use MissingValues(ChartLineMissingValues.Gap) but this didn't fix the issue. I really don't want to show the line when there is no values. If I change my code to return zero it will show the Line at zero. this is not what I am looking for 

Unhandled exception at line 35, column 17304 in http://localhost:28123/Scripts/kendo/2013.2.716/kendo.all.min.js

0x800a138f - JavaScript runtime error: Unable to get property 'value' of undefined or null reference

7 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 16 Aug 2013, 10:24 AM
Hi Sharif,

Could you please send me a running sample project reproducing this issue? Thus I will give all my best to find a quick solution of your requirements.

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Suresh
Top achievements
Rank 1
answered on 05 Sep 2013, 02:43 PM
Hi,

I am also having the same issue.  Following is the code snippet.
List<double?> chartData = new List<double?>(new double?[] { null, null, null, null });
 
List<DateTime> chartTime = new List<DateTime>(new DateTime[] { DateTime.Now.Date,DateTime.Now.Date.AddDays(1),DateTime.Now.Date.AddDays(2),DateTime.Now.Date.AddDays(3)});
 
var chart = Html.Kendo().Chart();
 
chart.Name("MissingGap");
 
chart.SeriesDefaults(seriesDefaults => seriesDefaults.Line());
 
//Add series
chart.Series(p =>
                {
                    p.Line(chartData).MissingValues(ChartLineMissingValues.Interpolate).Name("Stock Market");
                     
                });
 
chart.CategoryAxis(axis => axis.Date().BaseUnit(ChartAxisBaseUnit.Days).Categories(chartTime));
                
chart.ValueAxis(axis => axis.Numeric().Labels(labels => labels.Format("{0}")));
                
chart.Render();
Can you please give us a fix or work-around for this issue.

Thanks,
Suresh
 

0
Hristo Germanov
Telerik team
answered on 06 Sep 2013, 11:47 AM
Hello Suresh,

Could you please update to the latest internal build and tell me if you have any problems with it?

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Suresh
Top achievements
Rank 1
answered on 12 Sep 2013, 12:26 PM
Hi Hristo,

This is working with the latest internal build. Thank you.
By the way, do you know when will be the next official build, which will help me in deciding whether to go with this fix or not.

Thanks,
Suresh


0
Hristo Germanov
Telerik team
answered on 12 Sep 2013, 03:02 PM
Hi Suresh,

The next official release is Q2 SP1 of Kendo UI and it is scheduled for the middle of the next week.

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Christopher
Top achievements
Rank 1
answered on 04 Dec 2013, 03:00 PM
I am having this issue with v.2013.3.1119.340
0
Hristo Germanov
Telerik team
answered on 05 Dec 2013, 08:14 AM
Hello Christopher,

Could you please send me a running sample project reproducing this issue? Thus I will give all my best to find a quick solution of your requirements.

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sharif
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Suresh
Top achievements
Rank 1
Christopher
Top achievements
Rank 1
Share this question
or