1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    6
    Vote Rating
    0
    blackcat is on a distinguished road

      0  

    Question TextArea focus proplem

    TextArea focus proplem


    I use Ext.form.TextArea and Ext.form.ComboBox. User input text on textarea, and then can select some text from combobox to insert on textarea. How can I set cursor on textarea after 'select' event fires in combobox? (I try use focus() method, but it doesn't work, cursor is in combobox)

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You have to defer the focus on the textarea, because the combobox will refocus itself after the select event, e.g.
    Code:
    combobox.on('select', function(){
     textarea.focus();
     ...
    }, combobox, {delay: 1});

Similar Threads

  1. TextArea focus proplem
    By blackcat in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 26 Nov 2010, 7:52 AM
  2. why the Ext.form.TextArea can't get focus???
    By mychirs in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 May 2009, 4:54 PM
  3. why the Ext.form.TextArea can't get focus???
    By mychirs in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 18 May 2009, 4:31 AM
  4. move cursor on textarea focus? Can it be done?
    By silcreval in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 1 Jul 2008, 11:16 PM
  5. Focus in textarea
    By silcreval in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Jun 2008, 9:52 AM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi