TreeGrid coloum with textbox

  1. #1

    TreeGrid coloum with textbox

    Hi,

    i want to create treegrid with all cells of one coloum editables.
    I add XTamplate proprery as code below, but the focus on my textbox disappear as soon as i click inside.

    <ext:TreeGrid ID="tree"
                runat="server"
                Title="Vista"
                Width="800"
                NoLeafIcon="true"
                EnableDD="true">
                <Columns>
                    <ext:TreeGridColumn Header="task" Width="400" DataIndex="task" /> 
                    <ext:TreeGridColumn Header="day" Width="150" DataIndex="user" >
                  
                   <XTemplate ID="XTemplate1" runat="server">
                        <Html>
                          <input type="text">  // my input text
                         </Html>
                    </XTemplate>
    
                    </ext:TreeGridColumn>
                </Columns>
               
            </ext:TreeGrid>
    Any suggestion ?
    Thanx
  2. #2
    Hi,

    Selection model causes focus lost.

    I can suggest this TreeGrid's BeforeClick listener:
    <BeforeClick Handler="return !Ext.fly(e.getTarget()).is('input');" />
    There can be further issues, because it's not a standard mode. I don't know what ones exactly.

    Please feel free to update thread if you will get it working well:)
  3. #3

    Thanks .

    Thanks . That's work perfectly !
    I appreciate that !

    Quote Originally Posted by Daniil View Post
    Hi,

    Selection model causes focus lost.

    I can suggest this TreeGrid's BeforeClick listener:
    <BeforeClick Handler="return !Ext.fly(e.getTarget()).is('input');" />
    There can be further issues, because it's not a standard mode. I don't know what ones exactly.

    Please feel free to update thread if you will get it working well:)

Similar Threads

  1. Replies: 0
    Last Post: Nov 29, 2011, 9:41 AM
  2. Alignment in textbox
    By emon in forum 1.x Help
    Replies: 0
    Last Post: Apr 25, 2011, 11:30 AM
  3. [CLOSED] TreeGrid: Header width when treegrid is flexible
    By wazige in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 06, 2010, 10:44 AM
  4. Hide the grid coloum Based on Button Click
    By Dinesh.T in forum 1.x Help
    Replies: 1
    Last Post: Nov 17, 2009, 3:55 AM
  5. Replies: 1
    Last Post: Dec 25, 2008, 6:32 AM

Tags for this Thread

Posting Permissions