PivotGrid dataSource read fails when rows expanded

2 posts, 0 answers
  1. Jim
    Jim avatar
    1 posts
    Member since:
    Aug 2015

    Posted 06 May Link to this post

    I've been playing with overwriting the adomd command text and came across an odd bug with the pivotgrid/datasource.

    I've made a dojo example here that reproduces the issue.  Clicking the button triggers:

    $("#pivotgrid").data("kendoPivotGrid").dataSource.read();

    If the rows are not expanded, the function call works fine.  But after expanding the row data (All Geographies) to show Abingdon, Albany, etc..triggering the read function again causes a javascript exception in kendo.all.min.js (dataItem is undefined).

    Is there a way to resolve this issue?

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 10 May Link to this post

    Hello Jim,

    The best way to reload the source and start from the beginning is to reset the datasource instance. Check the updated Dojo demo:
    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
Back to Top