[CLOSED] FieldSet width problem

  1. #1

    [CLOSED] FieldSet width problem

    Hi,

    i can't set fieldset width 100%. i tried set filedset width and anchor property but it doesn't work.

    how can i set filedset width 100% or autowidth?

    Her is my codes.

    <ext:FormPanel ID="Panel1" runat="server" Title="ALINAN FATURA (SİPARİŞLİ)" Frame="true"
            BodyPadding="10" Resizable="false" Anchor="100%">
            <FieldDefaults LabelWidth="110" LabelStyle="color:green;padding-left:4px;" />
              
            <Items>
                <ext:Container ID="Container1" runat="server" Layout="VBoxLayout" MarginSpec="0 0 10">
                    <Items>
                  
                                            
                        <ext:FieldSet ID="fsSecilenKalemler" runat="server" Flex="1" Title="Se?ilen Sipariş Kalemleri"
                            Layout="AnchorLayout" Width="600" > <--------------
                            <Defaults>
                                <ext:Parameter Name="HideEmptyLabel" Value="false" Mode="Raw" />
                            </Defaults>
                            <Items>
    Last edited by Daniil; Mar 19, 2014 at 8:52 AM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi @ddeniz,

    Welcome to the Ext.NET forums!

    I tried to replicate the problem, but I could not.

    The FieldSet in the example below appears to take all the width without any additional settings.

    Example
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:FormPanel runat="server" Width="400" Height="400">
                <Items>
                    <ext:Container runat="server">
                        <Items>
                            <ext:FieldSet runat="server" Title="FieldSet">
                                <Items>
                                    <ext:TextField runat="server" />
                                </Items>
                            </ext:FieldSet>
                        </Items>
                    </ext:Container>
                </Items>
            </ext:FormPanel>
        </form>
    </body>
    </html>
  3. #3

    Hi @Daniil

    Thanks for your answer.

    Fieldset is a strange control :)

    my formpanel control's width type anchor and it's value 100% (it's works)
    like this;

    <ext:FormPanel ID="Panel1" runat="server" Frame="true"   BodyPadding="10" Resizable="false" Anchor="100%">
    The formpanel has a fieldset control and i deleted fieldset's width and anchor properties also fieldset control has a gridpanel control.
    the gridpanel hasn't width or anchor property and it's dosent work thus (fieldset and gridpanel dosent show where i run my project)

    i think, filedset controls dosent inherit width value from formpanel,it's width value maximum width member of fieldset.
    Last edited by geoffrey.mcgill; Mar 12, 2014 at 3:01 PM. Reason: Please use [CODE] tags
  4. #4
    Anchor="100%"
    This setting is used by an AnchorLayout only.
    http://docs.sencha.com/extjs/4.2.1/#...hor-cfg-anchor

    So, it a parent container doesn't have an AnchorLayout, then an Anchor setting doesn't produce any effect.

    i think, filedset controls dosent inherit width value from formpanel,it's width value maximum width member of fieldset.
    Not sure what exactly you mean, but the FieldSet in my example occupies all the available width.
    Last edited by Daniil; Mar 19, 2014 at 8:51 AM.

Similar Threads

  1. [CLOSED] FieldSet display problem in IE8
    By lonely7345 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 11, 2011, 11:57 AM
  2. [CLOSED] Difference in width combobox within fieldset
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 31, 2010, 7:58 AM
  3. [CLOSED] button lay out problem in fieldset
    By skyone in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jul 23, 2010, 8:09 AM
  4. FieldSet porting problem...
    By Vinturi in forum 1.x Help
    Replies: 1
    Last Post: Feb 10, 2009, 9:26 AM
  5. FieldSet problem movement texts
    By Vinturi in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2009, 12:57 PM

Posting Permissions