|
export default Vue.extend({
data: () => {
return {
data: gridData,
pageSettings: { pageSize: 5 },
toolbar: ["Add", "Edit", "Delete", "Update", "Cancel"],
. . . . . . .
selectOptions: { type: "Multiple" },
resizeSettings: { mode: "Normal" },
};
},
methods: {
dataBound: function () {
this.$refs.grid.autoFitColumns();
},
},
provide: {
grid: [
Sort,
Toolbar,
. . . . . .
],
},
});
</script
|

Hi,
I also have the exactly same issue as Alex above.
I want to fix the width of particular columns (so I set min/max/width) and allow the all other columns to be resizable and adjust the space available in the grid, without the blank space on the right hand side.
So I set the resizeSettings behaviour to be Auto to overcome the blank space but find that my fixed width columns are affected by the autosizing of the columns and are > the maxWidth I need to limit them too.
Further I notice that manually resizing any columns results in the fixed width column 'snapping' back down to the correct fixed width.
Is there a way I can 100% fix the width of a column AND allow other columns to be resizable filling the entire width of the grid (so no blank space on the right hand side)
Hi Gary,
Thanks for contacting Syncfusion support.
As we said in our previous update when ‘Normal’ mode is used the columns will not be adjusted based on the empty white space on the right end of the Grid and when ‘Auto’ mode is used, the resized column width will be adjusted by other columns(including the fixed column width) automatically. This is the default behavior of the Grid’s resize functionality. Since this cannot be modified, we suggest you to use either one of these modes for your case.
Refer to the below API link for the mentioned details on the Grid’s resizeSettings property,
API: https://ej2.syncfusion.com/vue/documentation/api/grid/resizeSettings/
Regards,
Rajapandiyan S