PivotGrid with Null Values

5 posts, 0 answers
  1. Feyzi
    Feyzi avatar
    7 posts
    Member since:
    Sep 2013

    Posted 25 Mar 2015 Link to this post

    When using a Plain JavaScript object containing Null Values, there are exceptions caused
    by the PivotGrid. This is caused by line 620 in kendo.pivotgrid.js (Version 2015.1). On this line there is a check for undefined which can be extended to
    check for null as well:

    value = value !== undefined && value !== null ? value.toString() : value;

    I was able to reproduce the error with the sample http://demos.telerik.com/kendo-ui/pivotgrid/local-flat-data-binding
    when setting some Fields to null.

    It is this behavior intended? For me, it seems like a bug that should be fixed

  2. con_ssc
    con_ssc avatar
    87 posts
    Member since:
    Apr 2014

    Posted 25 Mar 2015 in reply to Feyzi Link to this post

    So how did you set values to null in that example? Do you have the example code? I'm not quite sure but maybe defaultValue: 0, nullable:false might help here.
  3. Kendo UI is VS 2017 Ready
  4. Feyzi
    Feyzi avatar
    7 posts
    Member since:
    Sep 2013

    Posted 25 Mar 2015 in reply to con_ssc Link to this post

    I send you a example. It based on the demo pivot grid. You should be able to reproduce the exception. defaultValue: 0, nullable:false wasn't a solution for this issue.
  5. con_ssc
    con_ssc avatar
    87 posts
    Member since:
    Apr 2014

    Posted 26 Mar 2015 Link to this post

    Yes that seems to be a weakness in PivotGrid DataSource maybe. I circumvented that problem always by filling up empty or missing values already while reading the data.
  6. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 27 Mar 2015 Link to this post

    Hello Feyzi,

    Indeed, the described behavior is not expected and should be fixed. I logged it and will address it for the upcoming service pack of Kendo UI due the end of April.

    I updated your Telerik points because of the find.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready