ParamQuery Grid
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Change Grouping Summary type
« previous
next »
Print
Pages: [
1
]
Author
Topic: Change Grouping Summary type (Read 337 times)
mikep
Pro Ultimate
Full Member
Posts: 163
Change Grouping Summary type
«
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?
Logged
paramvir
Administrator
Hero Member
Posts: 6309
Re: Change Grouping Summary type
«
Reply #1 on:
March 27, 2023, 12:50:50 pm »
You can use groupChange event to detect grouping by certain field and set field summary accordingly.
Code:
[Select]
groupChange: function(){
alert( this.option('groupModel.dataIndx') );
},
Logged
Print
Pages: [
1
]
« previous
next »
ParamQuery grid support forum
»
General Category
»
Help for ParamQuery Pro
»
Change Grouping Summary type