In my angular app, I am overriding OnChanges() method and trying to select a cell on the table using selectCell method.
The way the feature should work is,
On click event outside of the table, say a button or can be anything else, I get the rowNumber in which a particular column should be selected.
Below function gets called on click of a button( I am still not focussed on the handsontable), it executes without errors.
but I don’t see column 5, of row 1(assume rowNum === 1) not getting selected.
changes(any){
if (rowNum !== -1) {
tableInstance = hotRegisterer.getInstance(tableHotInstance);
const isLstn = tableInstance.isListening();
if (!isLstn ) {
hottable = hotRegisterer.getInstance(this.tableHotInstance);
hottable.selectCell(rowNum, 5);
}
}
}