If you want to use auxiliary columns, for example, others, for example, you have 2 columns with a fixed width, and grouped columns should behave like columns with flex ( auto width ), you need to write your own function for resizing.
Description: you need to add a resize event listener to the grid and inside the function resize the column (s)
Mesh receiver:
listeners: { resize: function(grid) { // you need to add and itemId for the sub columns parent var subCols = grid.getView().getHeaderCt().child('#sub-cols'); // 200 = sum of the fixed width of columns subCols.setWidth(grid.getWidth() - 200); } }
Grid Columns:
{ text: 'sub columns', itemId: 'sub-cols', columns: [{ text: 'Email', dataIndex: 'email', flex: 1 }, { text: 'Phone', dataIndex: 'phone', flex: 1 }] }
source share