Posted 19 January 2018, 5:54 am EST
Hello,
You can listen to LeaveCell event to know when an active cell is changed. For example:
activeSheet.bind(GC.Spread.Sheets.Events.LeaveCell, function (sender, args) {
console.log("The column index before moving: " + args.col);
console.log("The row index before moving: " + args.row);
});
If you want the information about new cell get focus, you can catch the EnterCell event:
activeSheet.bind(GC.Spread.Sheets.Events.EnterCell, function (e, info) {
alert("Cell (" + info.row + ", " + info.col + ")");
});
I hope it helps.
Thanks,
Deepak Sharma