Posted 27 June 2019, 11:33 pm EST
Hello,
You may call the autoSizeRows method in the loadedRows event of FlexGrid. This will cause the rows to be auto-sized whenever the rows are loaded again like after sorting or filtering. Please refer to the code snippet below for reference:
var grid = new wjcGrid.FlexGrid('#grid', {
loadedRows: function (s, e) {
s.deferUpdate(() => {
s.rows.forEach(row => {
row.multiLine = true; // rows get recreated so we have to change their multiLine property
});
s.autoSizeRows();
});
},
itemsSource: getData(),
});
You may also refer to the sample below:
https://stackblitz.com/edit/js-wrnur8