Posted 12 October 2017, 11:43 am EST
Another thing to note for anyone looking for a solution similar, using the provided code is not extendable to any other grid. I recommend something like this instead:
function csFlexGrid_SelectionChanged(s, e) {
AutoSizeIfOverFlown(s, e.row, e.col);
}
function AutoSizeIfOverFlown(sender, row, col) {
var element = sender.cells.getCellElement(row, col);
if (element.scrollHeight > element.clientHeight) {
sender.autoSizeRow(row);
}
}
This way you can subscribe to the selection changed event from any grid to this function and it will fire for each.
Component One, please do provide a viable solution to automatically firing an event for items that scroll into view. I believe that would be the appropriate solution.