Size Columns of a Pivot Table

Hi Support Team,
Is there a way to change the width of columns one by one of a Pivot Table?
The table has 2 dimensions and 1 KPI, but with 6 columns(when open) and I’d like to decide the size of every one dynamically.
Many thanks for your great help
Angelo

Hello @Angelino1990,

Is there a way to change the width of columns one by one of a Pivot Table?

I’m not quite sure about the intended use case here. As there already is a functionality like that implemented by default, which lets you manually resize the columns at will (https://snippet.webix.com/pivot).

Are you looking for a way to programmaticaly change the column width one by one? If so, could you please provide more details about the specific implementation?

Hi Dzmitry,
I used the method below, and works fine as I want.
As the Pivot change content, I want to keep the state of every column.

onBeforeRender: function(config){
var columns = config.header;
for (var i = 0; i < columns.length; i++)
columns[i].width = $$(grida).state.size[i];
},

Regards

As the Pivot change content, I want to keep the state of every column.

Could you please elaborate on this statement? Do you mean you wish to keep the columns set to a certain width without the ability to resize them in any way? Either way, you could store your state as a separate variable, and refer to it when needed (https://snippet.webix.com/r6mzgm0v).