Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1145
Figuring out how a cell update completed
posted

I have a grid that's going to be used primarily by someone with a barcode scanner. The first column of the grid is going to be where the barcode is entered. The way these (and many) barcode scanners work is that it acts like a keyboard and emulates keypresses and ends with emulating the ENTER key.

In the case where the ENTER key is pressed to end editing (as opposed to mouse clicking elsewhere or tabbing or whatever), I want to insert a new empty row into the grid and set the grid to edit the barcode cell in that new row.

I do not want other methods of ending the cell edit (tab, mouse click, whatever) to do this. I only want it for the ENTER key.

My current way of handing this was to grab the igEditor when in the editCellStarted event and then binding to the keypress event in the igEditor to test keycodes. I get all the keycodes until the ENTER key, at which point I get the editCellEnded event but no keycode to tell me if the ENTER key is what ended it.

How can I fulfill these requirements?

Thanks.