EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: officecode on January 23, 2019, 08:00:42 AM



Title: How to perform different operations on the same column in the pivotgrid?
Post by: officecode on January 23, 2019, 08:00:42 AM
For example, I want to perform both max and min operations on the price column, but the results are all max.

Code:

pivot:{
rows: ...,
columns: ...,
values:[
{field:'price',title:'price_max',op:'max'},
{field:'price',title:'price_min',op:'min'}
],
},


Also, how can I get the forzenColumn column in the pivotgrid? I want to modify the width of it.
Thank you.


Title: Re: How to perform different operations on the same column in the pivotgrid?
Post by: stworthy on January 23, 2019, 11:31:32 PM
You can't do that. The field in the columns must be unique.