I have found what appears to be a conflict between using a width setting other than "flex" and local sorting by header click. With width set as a number or a percent, the following is happening: The column header is clicked, the grid data is sorted internally but the view does not refresh and the column header that was clicked does not highlight with the sort up/down indicator.
When this happens and a row or cell is selected after sorting (depending upon the selectionModel setting), the rowClick/rowSelect or cellClick/cellSelect events return the correct row for the new sort order even though that may not be the row on the screen that was selected. Sometimes this occurs when the grid is initially displayed and other times after a row or cell is selected, and then refreshView will correct it. The headerCellClick, beforeSort and sort events are firing with the correct column value. I had not seen this before switching to version 2.4.1.
These are the settings on one of the grids where it happens:
width: '1000',
height: '400',
editable: false,
wrap: false,
resizable: true,
columnBorders: true,
sortable: true,
collapsible: { collapsed: false, toggle: false },
scrollModel: { horizontal: true, lastColumn: 'none' },
selectionModel: { type: 'row', mode: 'single' },
hoverMode: 'row',
draggable: true,
dataModel: { location: "local", recIndx: "PeerGroupId", sortIndx: "PeerGroupCode" },
This is happening on all grids where an absolute width is specified. I need to use absolute widths in some grids because they have many columns and I need to use a horizontal scrollbar. Thanks.