Detect when user shifts sells

Hello,

I want to show a description outside the grid that explains what a column is about. I cannot seem to find an event that allows me to track when the user shifts columns. I can get notifications reliably from the ‘onSelectStateChanged’ event but only when the row changes.

Looking at the source code it seems that column change notifications is not possible (although I can sometimes trigger them with clicks - but just never the keyboard navigation).

Could you either point me in the right direction on how to detect a selected cell change, or provide some code to work around the limitation?

Much appreciated,

  • JD

In this case you may use onRowSelect event. It’s second parameter controls the column index.
http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:event_onrowselect

So if a user is in Row 3, and presses the right arrow to move from Column 1 to Column 2, this event would be fired?

That’s what I need: Keyboard support, when only changing columns (not rows. Row changing works, I can’t figure out how to get a notification when only the column changed).

Thanks you