PDA

View Full Version : [CLOSED] Gridpanel editalbe cell - select all text of field on cell click



PriceRightHTML5team
Jul 17, 2013, 8:18 AM
Hi
We have a gridpanel which has some fields / columns marked as editable.
We want the cell / field content should get selected when user does a click for edit.

How can we achieve this?

Daniil
Jul 17, 2013, 3:28 PM
Hi @PriceRightHTML5team,

Please use:

<ext:TextField runat="server" SelectOnFocus="true" />
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Text-cfg-selectOnFocus

PriceRightHTML5team
Jul 18, 2013, 6:20 AM
Hi Daniil,
Thanks "SelectOnFocus" property does the needful.