Hi,
I am using the latest version of Kendo UI i.e. 2017.3.921. I am trying to include in my solution the kendo-pivot but it seems that some of the features are not working:
1. The configuration option sortable enables the "Sort Ascending / Descending" options in the pivot grid BUT when clicked they do nothing. I tried in local binding demo and added the sortable: true just below the filterable property, and it does not work. I tied the same in the documentation of the sortable configuration setting but the dojo example does nothing
2. I have a kendo-pivot bound to a datasource with remote data of json type. I perform a read operation, the kendo pivot as well as the kendo configurator is populated with data. The pivot has only one Row dimension and no column fields (one measure, only). Should I expand the Row dimension to all its values and force a requery i.e. datasource.read() again the read function of the transport definition is execute OK BUT the statement options.sucess fails with the exception "cannot read property value of undefined"
function
preparePivotDS(espqParams, esOptions) {
var
qParams = angular.isFunction(espqParams) ? espqParams() : espqParams;
var
xParam = {
transport: {
requestEnd:
function
(e) {
var
response = e.response;
var
type = e.type;
console.log(type);
// displays "read"
console.log(response.length);
// displays "77"
},
read:
function
(options) {
var
pqOptions = {};
var
executeParams = qParams.Params;
if
(executeParams
instanceof
esGlobals.ESParamValues) {
if
(!executeParams.isValidState()) {
var
err =
new
Error($translate.instant(
"ESUI.PQ.PARAMS_MISSING"
));
options.error(err);
throw
err;
}
executeParams = executeParams.getExecuteVals();
}
esWebApiService.fetchPublicQuery(qParams.GroupID, qParams.FilterID, pqOptions, executeParams)
.then(
function
(pq) {
pq = pq.data;
options.success(pq.Rows || []);
})
.
catch
(
function
(err) {
$log.error(
"Error in DataSource "
, err);
options.error(err);
});
},
}
};
if
(esOptions) {
angular.extend(xParam, esOptions);
}
return
new
kendo.data.PivotDataSource(xParam);
}