[CLOSED] Highlight Checked Radio Button in Radio Button Group

  1. #1

    [CLOSED] Highlight Checked Radio Button in Radio Button Group

    Hello-

    I have a bunch of radio button groups for selecting some options.

    I am trying to find out the easiest way to highlight the selected radio button for each group.

    What is easiest way to do this?

    I was thinking CSS, but need some help.

    Thanks,
    Rob
    Last edited by Daniil; Aug 07, 2014 at 6:06 AM. Reason: [CLOSED]
  2. #2
    Hi @rcombis,

    CSS might OK if you are good with such highlighting.

    Example
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
    
        <style>
            .my-group .x-form-cb-checked .x-form-radio {
                background-color: red;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
    
            <ext:RadioGroup runat="server" FieldLabel="Group 1" Cls="my-group">
                <Items>
                    <ext:Radio runat="server" BoxLabel="Radio 1" />
                    <ext:Radio runat="server" BoxLabel="Radio 2" />
                </Items>
            </ext:RadioGroup>
            
            <ext:RadioGroup runat="server" FieldLabel="Group 2" Cls="my-group">
                <Items>
                    <ext:Radio runat="server" BoxLabel="Radio 1" />
                    <ext:Radio runat="server" BoxLabel="Radio 2" />
                </Items>
            </ext:RadioGroup>
        </form>
    </body>
    </html>
  3. #3
    Thanks Daniil!

    That worked great. I actually changed the CSS a bit to get the whole "cell" of the radio button

    .my-group .x-form-cb-checked .x-form-cb-wrap {
                background-color: yellow;
            }
    This was a big help to me.

    Thanks again.
    Rob

Similar Threads

  1. Replies: 8
    Last Post: Jul 16, 2014, 12:37 PM
  2. [CLOSED] Radio button group issue with MultiCombo.
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 22, 2011, 2:23 PM
  3. Replies: 1
    Last Post: Nov 29, 2011, 8:55 AM
  4. Retrieve checked radio from Radio Group
    By ttharaka2002 in forum 1.x Help
    Replies: 0
    Last Post: Mar 25, 2010, 2:15 AM
  5. [CLOSED] Radio button group click event
    By CSG in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 02, 2009, 6:53 AM

Tags for this Thread

Posting Permissions