PDA

View Full Version : Editable grid doesn't delete cell values with backspace



Syed Huda
5 May 2011, 10:21 AM
It appears that in the "Editable Grid" it doesn't delete cell values with backspace.
You CAN delete everything after the first character with the backspace.
You CANNOT delete all the text including the first character in a cell with the backspace button.

Why is this? How can I enable the backspace deletion of whole cell contents in the editable grid?

fay
6 May 2011, 12:58 AM
What exactly do you mean? The standard behaviour of the backspace key (in any application, be it web-based or not) is to delete the preceding character, or all selected characters, which the "Editable Grid" does do as you can see in this example (http://dev.sencha.com/deploy/ext-3.3.1/examples/grid/edit-grid.html). If you want to add "non-standard" behaviour for the backspace take a look at the keypress (http://dev.sencha.com/deploy/ext-3.3.1/docs/?class=Ext.grid.EditorGridPanel) event.

Syed Huda
6 May 2011, 5:46 AM
Actually just realized that I had allowBlank: false, I changed it to true, and now the backspace works correctly. My bad!