Hi experts, I have used defaultRowHeaderWidth, but now all row header columns have the same width. How to set it so that different row header columns have different widths based on their own content width? Thanks in advance.
Hello martin,
If I have two dimensions in row, _adjustRowHeadersWidth(ui.grid) redefine the row header with for all those two dimensions. In my case, my first dimension is very short, which should not be set to a wider width value. but the second dimension is very long, is there any way I can expand the second row dimension specifically?
Hello srajagopal,
Again this can be achieved with an internal function like this:
pivotGridRendered: function (evt, ui) {
ui.owner._adjustRowHeadersWidth(ui.grid);
}
Hope this helps,Martin PavlovInfragistics, Inc.
Hi martin, thank you very much for reply. Fancy secret way of doing resizing! But this is for the grid area of pivot grid, do you know how to auto resize row header area, I mean the very left side, those horizontal headers? Thanks in advance.
There is no out of the box solution for this scenario, but it can be achieved with a private function of the Resizing feature. The solution is to handle the pivotGridRendered event and call "_autoResize" method.
Here is a code snippet:
$("#grid").igPivotGrid({
dataSource: dataSource,
gridOptions: {
features: [ {
name: "Resizing"
} ]
},
var columns = $("#" + ui.owner.grid().id()).data("igGrid").options.columns, i;
for (i = 0; i < columns.length; i++) {
$("#" + ui.owner.grid().id()).data("igGridResizing")._autoResize(i, true, null);
});