Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
igPivotGrid do not fix column width
posted

Hello support,

I have some problems to set a fixed width to a column in igPivotGrid.
In your documentation it says we have an option to set the default row and header width.

This is my configuration object:

var pivot_obj={
        dataSourceOptions: {
            flatDataOptions: {
                dataSource: null,
                metadata: {
                    cube: {
                    }
                }
            },
            rows: null, 
            columns: null, 
            measures: null,
            filters:null
        },
        pivotGridOptions : {
          allowHeaderColumnsSorting : true,
          allowHeaderRowsSorting : true,
          allowSorting: true,
          defaultRowHeaderWidth : 250,
          gridOptions:{
              defaultColumnWidth: 200,
              features: [
                  {
                      name: "Tooltips",
                      visibility: "always"
                  },
                  {
                      name: "Resizing",
                      deferredResizing: false,
                      allowDoubleClickToResize: true
                  }
              ],
              fixedHeaders:true,
              width : "100%",
              height : "50%"
          },
          firstSortDirection: "ascending",
          firstLevelSortDirection: "ascending",
          levelSortDirections: [
                    { levelUniqueName: "[Date].[Dates].[year]", sortDirection: "descending" },
                    { levelUniqueName: "[Product].[All Products].[Product]" }
          ]
        },
        dataSelectorPanel : {
            collapsed : true,
            collapsible : true,
            location : "right",
            resizable : true
        }
};

Image 1

As you can see in image 1, we do not have any data when the page finish load, and the first column, have width 250px like the configuration.

Image 2

When we load the data with more then one measures selected, the grid ignore the column default width (see image 2).

What I should do to force the default column width?