[CLOSED] TextField next to a Button declared in Buttons section

  1. #1

    [CLOSED] TextField next to a Button declared in Buttons section

    Hi everyone,


    Is it possible to add a TextField next to a Button which is declared in the Buttons section of a Panel??

    What I want to get is to have a textfield next to a button placed down in a panel (Buttons section) and I would like that the TextField had the same behaviour as that button; I mean, always visible altough scroll is moved and so on.


    Thanks
    Last edited by Daniil; Mar 29, 2011 at 9:36 AM. Reason: [CLOSED]
  2. #2
    Hi,

    The <Buttons> section is rendered to the panel's 'footer' element. It's the lowermost element.

    To achieve you requirement I would suggest you the following way:

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:Panel runat="server" Width="200" Height="200" Html="Hello World!">
            <FooterBar>
                <ext:Toolbar runat="server" Layout="row" Height="50">
                    <Items>
                        <ext:Container runat="server" Layout="HBoxLayout" Height="25">
                            <LayoutConfig>
                                <ext:HBoxLayoutConfig Pack="End" />
                            </LayoutConfig>
                            <Items>
                                <ext:Button runat="server" Text="Test" />   
                            </Items>
                        </ext:Container>
                        <ext:Container runat="server" Layout="HBoxLayout" Height="25">
                            <LayoutConfig>
                                <ext:HBoxLayoutConfig Pack="End" />
                            </LayoutConfig>
                            <Items>
                                <ext:TextField runat="server" />   
                            </Items>
                        </ext:Container>
                    </Items>
                </ext:Toolbar>
            </FooterBar>
        </ext:Panel>
        </form>
    </body>
    </html>
  3. #3

    Solved

    Thank you very much Daniil, it worked perfectly!!

Similar Threads

  1. Replies: 1
    Last Post: May 29, 2012, 11:26 AM
  2. Replies: 5
    Last Post: Apr 28, 2012, 7:42 AM
  3. [CLOSED] cannot find component even though they are declared.
    By RCM in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Mar 13, 2012, 1:23 PM
  4. Replies: 0
    Last Post: Jan 16, 2012, 4:15 AM
  5. [CLOSED] [1.0] Spinner buttons on normal TextField?
    By danielg in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Sep 22, 2010, 2:36 PM

Tags for this Thread

Posting Permissions