[CLOSED] Problem with Composite Field

  1. #1

    [CLOSED] Problem with Composite Field

    Hello, we have a alignment problem with composite field. If we use fields have note align top , there is a problem with alignment. fields which have note settle in up and the others which have not a note settle in down .

    How can we solve this problem.

    <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">
        <title>test</title>
    </head>
    <body>
        <form runat="server">
        <ext:ResourceManager runat="server" />
        <center>
            <ext:Window runat="server" ID="ctlWindow" Width="600" Height="400 ">
                <Items>
                    <ext:CompositeField runat="server" ID="ctlComposit">
                        <Items>
                            <ext:TextField runat="server" ID="TextField1" Note="TextField1" NoteAlign="Top">
                            </ext:TextField>
                            <ext:TextField runat="server" ID="TextField2" Note="TextField2" NoteAlign="Top">
                            </ext:TextField>
                            <ext:TextField runat="server" ID="TextField3">
                            </ext:TextField>
                            <ext:Button Icon="Add" runat="server" ID="clickButton">
                            </ext:Button>
                        </Items>
                    </ext:CompositeField>
                </Items>
            </ext:Window>
        </center>
        </form>
    </body>
    </html>
    Click image for larger version. 

Name:	Untitled.png 
Views:	126 
Size:	7.8 KB 
ID:	3100

    Regards.
  2. #2
    You can set empty Note or set margin-top
    <%@ 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></title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <center>
                <ext:Window runat="server" ID="ctlWindow" Width="600" Height="400">
                    <Items>
                        <ext:CompositeField runat="server" ID="ctlComposit">
                            <Items>
                                <ext:TextField runat="server" ID="TextField1" Note="TextField1" NoteAlign="Top">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField2" Note="TextField2" NoteAlign="Top">
                                </ext:TextField>
                                <ext:TextField runat="server" ID="TextField3" Note="&nbsp;" NoteAlign="Top">
                                </ext:TextField>
                                <ext:Button Icon="Add" runat="server" ID="clickButton" StyleSpec="margin-top:14px;">
                                </ext:Button>
                            </Items>
                        </ext:CompositeField>
                    </Items>
                </ext:Window>
            </center>
        </form>
    </body>
    </html>
  3. #3
    It works. Thanks.

Similar Threads

  1. RTL for Composite Field
    By ahmadezzeir in forum 1.x Help
    Replies: 3
    Last Post: May 17, 2012, 8:25 PM
  2. Replies: 1
    Last Post: Oct 07, 2011, 8:34 AM
  3. Replies: 2
    Last Post: Sep 22, 2011, 11:46 AM
  4. Replies: 2
    Last Post: Aug 19, 2011, 1:36 PM
  5. [CLOSED] form layout with composite field problem
    By dev in forum 1.x Legacy Premium Help
    Replies: 19
    Last Post: Aug 31, 2010, 8:42 AM

Tags for this Thread

Posting Permissions