PDA

View Full Version : How to keep the corsor in the cell go a grid?



panbayi
23 Jan 2013, 6:09 PM
Hi there!
Now I hava a grid with a celledting plugin, and I add a listener to detect the 'edit' event.In the function response to the 'edit' event,i would check if the input value is valid.Here is the problem, how can I keep the cursor in the cell when the input value is not valid?

Any help would be appreciated.Thank you for you view!

hlurger
24 Jan 2013, 12:11 AM
Have you tried to set the focus?

http://docs.sencha.com/ext-js/4-1/#!/api/Ext.dom.Element-method-focus