We truly hope that our free tool comes in handy for your business, especially these days. Follow our news, stay safe & pivot on!

How to assign aggregate column width..?


How to assign aggregate column width dynamically ..?
like if i assign width in json data like :

“measures”: [
                                 “uniqueName”: “count”,
                                 “aggregation”: “sum”,
                                 “uniqueName”: “polCrt”,
                                 “aggregation”: “sum”,
                                 “uniqueName”: “PSize”,
                                 “formula”: “sum(\”polCrt\”) / sum(\”count\”) “,
                                 “format”: “3ag2hgjg”,

Something like this , so it will be easy to implement.

3 answers

WebDataRocks Team WebDataRocks November 28, 2018

Hello, Kiran,
Thank you for writing to us.
We would like to inform you that the only possible option it to resize the columns manually and then save the configuration. For more details please check the following thread: https://www.webdatarocks.com/question/how-to-make-the-column-width-full-of-space/
Hope it helps.
WebDataRocks Team

Kiran Kanani November 29, 2018

Hello, Team,
Thanks for the reply.
But I have already read this post and i know that i have to apply manually ,
but my concern is that if i change sequence of column from tool then changes was not applied according to setting it was applied according to column number .
and i am using pivot table so i don’t know how many columns are there because it was dynamically ,
so it was difficult to identify column no 
So, I want to know is there any solution to solve this issue rather then manual setting ..?

WebDataRocks Team WebDataRocks November 29, 2018

Hello, Kiran,
Currently, there are only two options to modify column width: manually and by setting default min/max width via CSS, for example:

.wdr-grid-column { 
width: 50px;
max-width: 70px;

Hope it helps.
WebDataRocks Team

Please login or Register to Submit Answer