[CLOSED] Simple radiogroup question

  1. #1

    [CLOSED] Simple radiogroup question

    Hi
    I want to add a simple radio group to a page like this, but it look really bad. The label and the actuall button does not align on the same row. Am I required to use the FormLayout?
    It would be nice to just att a simple radiogroup without all the extra containers. Is that possible?

    /Mikael

    
    
    
    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
        }
    
    
    
       
        
    </script>
    
    
    <script type="text/javascript">    
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
    
    
        <form id="form1" runat="server">
        
                
        <ext:ScriptManager runat="server" ID="ScriptManager1"></ext:ScriptManager>
    
    
        <ext:RadioGroup runat="server" ID="rgTest" Width="400">
            <Items>
                <ext:Radio runat="server" ID="rb1" FieldLabel="Enable"></ext:Radio>
                <ext:Radio runat="server" ID="rb2" FieldLabel="Disable"></ext:Radio>
            </Items>
        </ext:RadioGroup>
    
    
        
    
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] Simple radiogroup question

    Hi Mikael,

    Please use BoxLabel instead FieldLabel (Field label should be used if field inside FormLayout)*
  3. #3

    RE: [CLOSED] Simple radiogroup question



    I dont get it to look nice, please look at this simple example.

    /Mikael

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            
            
        }
    
    
    
       
        
    </script>
    
    
    <script type="text/javascript">    
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
    
    
        <form id="form1" runat="server">
        
                
        <ext:ScriptManager runat="server" ID="ScriptManager1"></ext:ScriptManager>
    
    
        <ext:RadioGroup runat="server" ID="rgTest" Width="400">
            <Items>
                <ext:Radio runat="server" ID="rb1" BoxLabel="Enable testradio"></ext:Radio>
                <ext:Radio runat="server" ID="rb2" Checked="true" BoxLabel="Disable testradio"></ext:Radio>
            </Items>
        </ext:RadioGroup>
                                
    
    
        
    
        </form>
    </body>
    </html>
  4. #4

    RE: [CLOSED] Simple radiogroup question

    Hi Mikael,

    You need replace *all white spases in your labels by*


    &amp;nbsp;

    or use the following style
    .nowrap-group{white-space:nowrap;}

    and set for group Cls="nowrap-group"


    I think we will add ability to handle it automatically
  5. #5

    RE: [CLOSED] Simple radiogroup question

    Thanks, that did the trick!
    Yes automatic handeling for that would be great!

    /Mikael

Similar Threads

  1. [CLOSED] Simple or not ?
    By sisa in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 20, 2011, 7:59 AM
  2. Replies: 1
    Last Post: Sep 13, 2011, 5:19 PM
  3. Very simple question TreePanel check or uncheck all
    By apocalipse9 in forum 1.x Help
    Replies: 0
    Last Post: Jun 17, 2010, 12:36 AM
  4. [CLOSED] Simple Question: Add Script to ScriptManager via Ext Javascript.
    By Immobilmente in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 12, 2009, 4:06 AM
  5. [CLOSED] Simple date render question
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 05, 2008, 1:31 PM

Posting Permissions