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?