selectText doesn't work when start editing in a EditorGrid in IE or Chrom
selectText doesn't work when start editing in a EditorGrid in IE or Chrom
I want to select all the text when start editing a EditorGrid cell, like this,
I found selectOnFocus and selectText fn in TextField,so I add this code
Code:
ed.field.selectText()
in the end of startEditing fn in EditorGrid,but not all the filed inherits from textfield,so I also try
Code:
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.