View Full Version : Disable up/down arrows on a grid

8 Mar 2010, 11:16 AM
Does anyone know how to disable a userís ability to use the up/down arrows when a grid has focus? The issue is when a row is clicked on (or enter is pressed) in a grid I put up a loading mask while the content related to the row selected is loaded via Ajax call in a different panel. If the user then decides to press the up or down arrow while the loading mask is displayed they can switch the selected row in the grid thus making it so that the selected row and displayed content are no longer in sync after I remove the loading mask. Thanks in advance to any help with this.

10 Mar 2010, 12:16 AM
I know the way of solving such problems: read the source of GridPanel/GridView and then inserting a hook inside it onKey... function or event. Source + Firebug always give me the result I want.