Toast grid UI addRowClassName error
When the sorting feature is enabled (ascending or descending), class assignment via addRowClassName is delayed until the mouse enters the grid or a separate event occurs. RefreshLayout also has no effect.
Usage code attached
const selectRowByKey = (rowKey) => {
if (!grid || rowKey == null || isProcessing) return;
isProcessing = true;
try {
const isChecked = !!grid.getRow?.(rowKey)?._attributes?.checked;
if (isChecked) {
grid.addRowClassName?.(rowKey, className);
} else if (!isChecked) {
grid.removeRowClassName?.(rowKey, className);
}
} catch (error) {
console.warn('selectRowByKey error:', error);
} finally {
isProcessing = false;
}
};
Toast grid UI addRowClassName error
When the sorting feature is enabled (ascending or descending), class assignment via addRowClassName is delayed until the mouse enters the grid or a separate event occurs. RefreshLayout also has no effect.
Usage code attached
const selectRowByKey = (rowKey) => {
if (!grid || rowKey == null || isProcessing) return;
isProcessing = true;
try {
const isChecked = !!grid.getRow?.(rowKey)?._attributes?.checked;
if (isChecked) {
grid.addRowClassName?.(rowKey, className);
} else if (!isChecked) {
grid.removeRowClassName?.(rowKey, className);
}
} catch (error) {
console.warn('selectRowByKey error:', error);
} finally {
isProcessing = false;
}
};