PDA

View Full Version : Preselect cell content when editing grid row



cjessing
24 Apr 2014, 1:56 AM
Hi all

ExtJS 4.2.2:

Using the row editor plugin (ptype=rowediting) I'm wondering if it's possible to automatically select the content of the cell after calling

rowEditor.startEdit(newItem, 0);

The thing is that the cursor is placed after the cell value and then user then have to select it all if he/she want's to insert a completely new value. I would just like to preselect the contents of the cell. Similar to what happens when you tab into an input field.

Is it possible?

Thanks in advance

Gary Schlosberg
30 Apr 2014, 11:45 AM
Have you tried setting selectOnFocus (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Text-cfg-selectOnFocus) on the editor?