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”,
“caption”:”Pcs”,
“width”:”50″,
“grandTotalWidth”:”60″,
},
{
“uniqueName”: “polCrt”,
“aggregation”: “sum”,
“caption”:”PolCrt”,
“width”:”70″,
“grandTotalWidth”:”80″,
},
{
“caption”:”PolSiz”,
“uniqueName”: “PSize”,
“formula”: “sum(\”polCrt\”) / sum(\”count\”) “,
“format”: “3ag2hgjg”,
“width”:”80″,
“grandTotalWidth”:”90″,
}
Something like this , so it will be easy to implement.
3 answers
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.
Regards,
WebDataRocks Team
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 ..?
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.
Regards,
WebDataRocks Team