Problem with BaseUnit and DataSource together

6 posts, 0 answers
  1. Olivier Constance
    Olivier Constance avatar
    6 posts
    Member since:
    Jul 2009

    Posted 14 Aug 2012 Link to this post

    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.
  2. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 17 Aug 2012 Link to this post

    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!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Marcus
    Marcus avatar
    1 posts
    Member since:
    Aug 2012

    Posted 09 Sep 2012 Link to this post

    Hello - I am running in to the same issue.  Is there an update available?
  5. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 13 Sep 2012 Link to this post

    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!
  6. Rodrigo
    Rodrigo avatar
    1 posts
    Member since:
    Oct 2013

    Posted 23 Oct 2013 Link to this post

    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
  7. Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 28 Oct 2013 Link to this post

    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!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready