3.2.0

NOT onCellClicked

Hi,

I have used onCellClicked for an grid application that is showing graphs and sales information as you are clicking on a cell, but i want it to change when the row focused has changed, and only ones per row, what could i use to make also key/arrow stroke have effect.

Thanks
Flaffer
May 30,
You can use currentRow property -

grid.onCurrentRowChanged = function(row){...}
Alex (ActiveWidgets)
May 31,
Hi Alex,

I have tried this, but the first time when i click on a row to activate the grid, the row get highlighted and the onCurrentRowChanged is not called.
Flaffer
May 31,
Hi Alex,

I'm still trying, but the first time when i click on a row to activate the grid, the row get highlighted and the onCurrentRowChanged is not called, is there another way to make it work so the function is called regardles if the row is highlighted whith key stroke or mouse.
Flaffer
June 6,
Yes, apparently onCurrentRowChanged does not fire first time if you click on the first row. This is because the first row is already set current (but not selected) immediately after the initialization. If this is a problem you can use selection event instead -

grid.onSelectedRowsChanged = function(rowsArray){
    window.status = rowsArray;
}
Alex (ActiveWidgets)
June 7,
Thanks ;-)
Flaffer
June 10,

This topic is archived.

See also:


Back to support forum