[CLOSED] Border to Container

  1. #1

    [CLOSED] Border to Container

    I have an Ext.Net.Container. This may container a TextField, a SpinnerField etc... How can I add a border to the Container so that it is uniform regardless of what I add to it? I didnt see Border as an option of Container.

    Thanks,
    /Z
    Last edited by Daniil; Nov 29, 2012 at 2:24 PM. Reason: [CLOSED]
  2. #2
    Hi @Z,

    A Container is just a container. No special functionality like borders in a Panel.

    You can stylize it using CSS.

    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>
    
        <style type="text/css">
            .my-ct {
                border: 1px solid;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container 
                runat="server" 
                Cls="my-ct" 
                Width="200" 
                Height="200" />
        </form>
    </body>
    </html>
    See also
    http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Container
  3. #3
    Thxs for info!
    /Z



    Quote Originally Posted by Daniil View Post
    Hi @Z,

    A Container is just a container. No special functionality like borders in a Panel.

    You can stylize it using CSS.

    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>
    
        <style type="text/css">
            .my-ct {
                border: 1px solid;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container 
                runat="server" 
                Cls="my-ct" 
                Width="200" 
                Height="200" />
        </form>
    </body>
    </html>
    See also
    http://docs.sencha.com/ext-js/3-4/#!/api/Ext.Container

Similar Threads

  1. [CLOSED] How to add 2 userControl inherited by Ext.Net.Container?
    By ViDom in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Sep 21, 2012, 10:11 AM
  2. Doubt about Formlayout with ext container
    By NishaLijo in forum 1.x Help
    Replies: 3
    Last Post: Feb 21, 2012, 8:00 AM
  3. Doubt about formpanel with ext container
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Feb 21, 2012, 7:59 AM
  4. Container layout problem
    By norphos in forum 1.x Help
    Replies: 1
    Last Post: May 25, 2011, 9:54 AM
  5. [CLOSED] [1.0] Container issue
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 09, 2010, 8:36 PM

Posting Permissions