Wijmo Pivot Grid coumn resizing according to available width

Posted by: spathi on 17 July 2019, 8:25 am EST

  • Posted 17 July 2019, 8:25 am EST

    As of now Wijmo Pivot Grid renders the columns using the absolute position and fixed width. Suppose I have 1000px space for grid and each column is rendering in 200px, the remaining 200px width is showing blank space.

    Is there any way to fit pivot grid columns fit to available width without showing the empty space?

  • Posted 18 July 2019, 2:55 am EST

    Hi,

    You may set the width of each column to ‘*’ and the column will automatically adjust its width according to the available space. Please refer to the code snippet and the sample below:

    var pivotPanelGrid = new wjcOlap.PivotGrid('#pivotPanelGrid', {
      loadedRows: function(s, e) {
        s.columns.forEach(col => {
          col.width = '*';
        });
      },
      itemsSource: ngPanel
    });
    

    https://stackblitz.com/edit/js-ajdhjj

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels