PDA

View Full Version : EditorGrid - Pressing alphabet on NumberField starts edit



mystix
27 Feb 2007, 6:10 PM
Pressing an alphabet on a NumberField in the EditorGrid starts the edit process. Shouldn't the edit process for the NumberField only start when a numeric key / enter key is pressed?

bone
27 Feb 2007, 11:45 PM
http://www.yui-ext.com/forum/viewtopic.php?t=3022

Quickfix would be to set 'clicksToEdit: 1' in the config of the editorgrid.

In addition, I'd like to mention that if one of the columns in the editorgrid is without a defined editor it will throw an error when you try to edit it. Quickfix for this is to manually check for it in isCellEditable(column,row) and return false if it is any of the columns that you know does not contain an editor.

jack.slocum
28 Feb 2007, 9:28 AM
The type to start editing feature has been removed. It was buggy and bypassed validation. It may be revisited at a later date. For now hitting enter and then keying in data works as expected.

mystix
28 Feb 2007, 9:29 AM
thanks for the quick reply jack ;)