PDA

View Full Version : selectText doesn't work when start editing in a EditorGrid in IE or Chrom



aimer311
9 Mar 2011, 6:02 PM
I want to select all the text when start editing a EditorGrid cell, like this,http://www.sencha.com/forum/attachment.php?attachmentid=23034&d=1288197959
I found selectOnFocus and selectText fn in TextField,so I add this code
ed.field.selectText()in the end of startEditing fn in EditorGrid,but not all the filed inherits from textfield,so I also try
ed.field.dom.select().ok,all the codes are working fine in firefox,but not in IE and Chrome,When I use the TAB to change the cell,It will call onBlur fn,So the cell can't keep in editing.

anyone can help?thanks in advance.

aimer311
9 Mar 2011, 10:02 PM
any suggestion is appreciated?

aimer311
10 Mar 2011, 6:02 PM
no one face this issue?

aimer311
13 Mar 2011, 6:04 AM
ok,I add all field with selectOnFocus=true.

selami32
31 Jan 2013, 5:13 AM
i was looking for this selectOnFocus:true worked on thanks mate