[SSE] Fix group data in pivot table

This commit is contained in:
Julia Radzhabova
2023-07-31 14:23:27 +03:00
parent b9927b26ca
commit 033783919b
2 changed files with 6 additions and 0 deletions

View File

@ -995,6 +995,10 @@ define([
this._layoutParams.columns++;
},
setMultiselectMode: function (multiselect) {
this.pressedCtrl = !!multiselect;
},
onResize: function() {
this._layoutParams = undefined;
},

View File

@ -254,12 +254,14 @@ define([
if (dateTypes) {
var me = this,
isDays;
this.listDate.setMultiselectMode(dateTypes.length>1);
_.each(dateTypes, function(item) {
var rec = me.listDate.store.findWhere({type: item});
rec && me.listDate.selectRecord(rec);
if (item == Asc.c_oAscGroupBy.Days)
isDays = true;
});
this.listDate.setMultiselectMode(false);
this.spnDays.setValue(rangePr.asc_getGroupInterval());
this.spnDays.setDisabled(!isDays || dateTypes.length>1);
this.btnOk.setDisabled(dateTypes.length<1);