Fixed an issue where strikeout is getting removed on scrolling of index column of the table.

refs #6157
This commit is contained in:
Nikhil Mohite 2021-02-10 17:38:41 +05:30 committed by Akshay Joshi
parent a5a83da045
commit 1b850ff616

View File

@ -1057,6 +1057,18 @@ define('tools.querytool', [
self.handler.slickgrid = grid;
// Add listener on data-grid table scroll.
self.handler.slickgrid.onScroll.subscribe(function() {
// Mark selected rows cells as selected.
setTimeout(() => {
// Can't use setSelectedRows as we are using cellSelectionModel.
var cellSelectionModel = self.handler.gridView.grid.getSelectionModel();
var ranges = cellSelectionModel.getSelectedRanges();
if (ranges.length > 1) {
// Set selected rows cell as selected.
cellSelectionModel.setSelectedRanges(ranges);
}
}, 100);
if(Object.keys(self.handler.data_store.deleted).length > 0) {
setTimeout(() => {
$(self.handler.gridView.grid.getCanvasNode()).find('div.selected').removeClass('strikeout');