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

PivotGrid dataSource read fails when rows expanded

1 Answer 87 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 06 May 2016, 11:50 PM

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?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 May 2016, 08:35 AM
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!
 
Tags
PivotGrid
Asked by
Jim
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or