Results 1 to 2 of 2

Thread: Preselect cell content when editing grid row

  1. #1
    Sencha User
    Join Date
    Apr 2014
    Posts
    29
    Answers
    2

    Default Answered: Preselect cell content when editing grid row

    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

  2. Have you tried setting selectOnFocus on the editor?

  3. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Have you tried setting selectOnFocus on the editor?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •