[CLOSED] TextField 100% Width inside a Panel in a FormPanel

  1. #1

    [CLOSED] TextField 100% Width inside a Panel in a FormPanel

    Hello!

    I cant get the textfield inside the panel to be 100% width.

    Thanks

    <%@ 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>DropDownField ValueText Mode - Ext.NET Examples</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <ext:FormPanel DefaultAnchor="100%" runat="server">
            <Items>
                <ext:Panel runat="server" LabelAlign="Top" DefaultAnchor="100%">
                    <Items>
                        <ext:TextField runat="server" FieldLabel="123" />
                    </Items>
                </ext:Panel>
            </Items>
        </ext:FormPanel>
        </form>
    </body>
    </html>
    Last edited by Daniil; Oct 11, 2011 at 11:45 AM. Reason: [CLOSED]
  2. #2
    Hi,

    You should set Layout="FormLayout" or Layout="AnchorLayout" for the Panel. Then the DefaultAnchor value will be used.
  3. #3
    Thanks. Case closed!

Similar Threads

  1. [CLOSED] How to update LabelStyle for TextField inside a FormPanel
    By drkoh in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 05, 2011, 3:01 PM
  2. Replies: 1
    Last Post: Oct 26, 2011, 8:17 AM
  3. Replies: 4
    Last Post: Oct 11, 2011, 3:14 AM
  4. Replies: 2
    Last Post: Sep 21, 2010, 12:14 PM
  5. Replies: 6
    Last Post: Jun 11, 2010, 1:47 PM

Posting Permissions