Intercept all keystrokes in grid cells
Some of the grids in this same application have columns that are used for dates, and I need to apply the same type of keyboard handling to those grid cells. But I've been having trouble finding the proper way of hooking into the appropriate events for the grid cell that would work the same way as the text input field. With the impending release of version 2.5 of ActiveWidgets, it sounds like the cell processing will be radically different, so I assume it would be better to implement it based on the 2.5 architecture. So how would I hook into the grid cell equivalent of the onfocus, onblur, and onkeydown events in version 2.5?
The grid also fires onCellEditStarted/onCellEditEnded events which could be used instead of onfocus/onblur. There is also onCellValidated event which fires before onCellEditEnded if the cell text has changed during editing. And finally there is onCellTextChanged event which fires on each keystroke, so it could be used instead of onkeydown. It also fires on copy/paste/delete/undo, i.e. _any_ change in the cell text.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.