[CLOSED] [1.0] Problem with HTML textarea inside a gridpanel's column

  1. #1

    [CLOSED] [1.0] Problem with HTML textarea inside a gridpanel's column

    Hi,
    I have a gridpanel with some columns; in a column I "bind" an HTML textarea; now, I want to write in a textarea but I can not; only after pressing "space" I can write on it.

    Furthermore, if I want to write in a "bottom" textarea and I press "space" on it, grid scrolls and selected textarea loses focus, so I have to repositioning on it.

    Please see attached example.

    Many thanks
    Attached Files
    Last edited by Daniil; Oct 14, 2010 at 7:37 AM. Reason: [CLOSED]
  2. #2
    Hi PoloTheMonk,

    A lot of events is fired after clicking on a row...
    I think it's not a bug, but needs a workaround.
    Please try the following one.

    Example
    <ext:GridPanel runat="server" ...>
        ... 
        <Listeners>
            <RowClick Handler="Ext.get('TEXT_' + (rowIndex + 1)).focus();"/>
        </Listeners>         
    </ext:GridPanel>
  3. #3
    Hi,

    Just a row is selected when you click on textarea. If row is selected then focus is called for that row therefore your textarea is not focusable anymore (for example, if you click on the textarae again (when row is selected already) then the textarea will be focused correctly)

    You can update from SVN and set IgnoreTargets="textarea" for RowSelectionModel to resolve the issue
  4. #4
    Hi Vlad and Daniil,
    I tried both solutions and they worked well, but I preferred to use IgnoreTarget="textarea".
    Many thanks for your fast reply.

Similar Threads

  1. How to content <%=Html.TextArea()%>
    By qch2006qch in forum 1.x Help
    Replies: 0
    Last Post: Jan 19, 2012, 2:54 AM
  2. [CLOSED] TextArea.Html missing
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 28, 2011, 8:11 AM
  3. html decode textarea
    By maxdiable in forum 1.x Help
    Replies: 2
    Last Post: Jan 22, 2010, 3:54 AM
  4. [CLOSED] GridPanel: display a Column as a TextArea
    By pschojer in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 16, 2009, 7:51 AM

Posting Permissions