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

Problem with BaseUnit and DataSource together

5 Answers 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Olivier Constance
Top achievements
Rank 1
Olivier Constance asked on 14 Aug 2012, 07:31 AM
Hello,

I have a problem with Kendo UI for ASP.NET MVC, below my soure code : 
<%= Html.Kendo().Chart(Of MyNamespace.DateIntPair) _
    .Name("chart") _
    .Legend(False) _
    .DataSource(Function(ds) ds.Read(Function(read) read.Action("GetStatsUniqueViews", "Home", New With {.id = RouteData.Values("id")}))) _
    .Series(Function(series) series.Area(Function(model) model.IntValue)) _
    .CategoryAxis( _
        Function(axis) axis.Categories(Function(model) model.DateValue).Date().BaseUnit(ChartAxisBaseUnit.Days)))
     
    %>

When i start the web page, i have this error :

Object reference not set to an instance of an object


When I remove .Date().BaseUnit(ChartAxisBaseUnit.Days, it's works.

Any ideas ?

Thank you in advance.

5 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Aug 2012, 11:50 AM
Hello Olivier,

Thank you for bringing our attention to this problem. I reproduced the exception on my side and we will fix this for one of the next internal builds. I updated your Telerik points for the involvement.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Marcus
Top achievements
Rank 1
answered on 09 Sep 2012, 09:31 PM
Hello - I am running in to the same issue.  Is there an update available?
0
Daniel
Telerik team
answered on 13 Sep 2012, 08:33 AM
Hello,

I am glad to inform you that the problem has already been fixed. The changes will be applied in the next service pack which is available for customers only and in the next official releases.

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Rodrigo
Top achievements
Rank 1
answered on 24 Oct 2013, 02:53 AM
Hello
I'm having the same problem.
How can I download the update available?

When I apply BaseUnit.Days Google Chrome crashes.

Thank you.

Rafael Tomitão
0
Daniel
Telerik team
answered on 28 Oct 2013, 09:22 PM
Hello Rafael Tomitão,

The aforementioned fix is included in the latest official release which is available for download from your account. However, I am not sure if the issue is the same. Is there an exception thrown on the server or the problem occurs when the chart is rendered in the browser? If an exception is not thrown, then could you provide a runnable sample that reproduces the problem or at least the code that you are using so I can check the setup?

Regards,
Daniel
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Chart
Asked by
Olivier Constance
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Marcus
Top achievements
Rank 1
Rodrigo
Top achievements
Rank 1
Share this question
or