dbulla
18 Apr 2011, 3:50 PM
I'm having a problem where we've got a grid with editable cells (we extended EditorSupport). As part of our app, we have to be able to handle text folks paste into cells via CTRL-V, and then do some post-processing (paste from a spreadsheet, so we have to parse the actual text, then figure out how to jigger the model to reflect what the pasted text is supposed to be).
The problem comes in that our business users want this to happen with just CTRL-V. I can get it to parse the text properly if the users navigate away from the cell via ENTER, TAB, etc - that triggers the onEditComplete() method of our extended EditorSupport class. But, that doesn't get triggered by just pasting. If you add a listener to the editor's text field, it doesn't seem to have the ability to signal the edit event is complete.
Any ideas? I'm fairly new to GXT, and these requirements are pretty inflexible ("It should work just like Excel"), so I'm trying to work around them
Thanks in advance,
Doug
The problem comes in that our business users want this to happen with just CTRL-V. I can get it to parse the text properly if the users navigate away from the cell via ENTER, TAB, etc - that triggers the onEditComplete() method of our extended EditorSupport class. But, that doesn't get triggered by just pasting. If you add a listener to the editor's text field, it doesn't seem to have the ability to signal the edit event is complete.
Any ideas? I'm fairly new to GXT, and these requirements are pretty inflexible ("It should work just like Excel"), so I'm trying to work around them
Thanks in advance,
Doug