:: Forum >>

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
Wednesday, May 30, 2007
You can use currentRow property -

grid.onCurrentRowChanged = function(row){...}
Alex (ActiveWidgets)
Thursday, May 31, 2007
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
Thursday, May 31, 2007
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
Wednesday, June 6, 2007
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)
Thursday, June 7, 2007
Thanks ;-)
Flaffer
Sunday, June 10, 2007

This topic is archived.


Back to support forum

Forum search