ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: mikep on March 24, 2023, 09:32:37 pm
-
If I'm grouping by a certain field, I want a field's summary to be sum, otherwise I want it to be avg (summary: { type: "avg" }).
How would I accomplish this?
-
You can use groupChange event to detect grouping by certain field and set field summary accordingly.
groupChange: function(){
alert( this.option('groupModel.dataIndx') );
},