[CLOSED] Place object in radio control

  1. #1

    [CLOSED] Place object in radio control

    Hello, I am trying to place ext controls in ext:Radio's <Content> tags but the page is broken during Page_Load. Is there any custom setting to be done for placing controls in radio control's content?

                                            <ext:RadioGroup ID="MyRadioGroup" runat="server" Layout="VBoxLayout">                                         
                                                <LayoutConfig>
                                                    <ext:VBoxLayoutConfig Align="Stretch"></ext:VBoxLayoutConfig>
                                                </LayoutConfig>
                                                <Items>
                                                    <ext:Radio ID="MyRadio1" runat="server" BoxLabel="Radio 1">
                                                        <Content>
                                                            <ext:Panel runat="server">
                                                            
                                                            </ext:Panel>
                                                        </Content>
                                                    </ext:Radio>
                                                    <ext:Radio ID="MyRadio2" runat="server" BoxLabel="Radio 2"></ext:Radio>
                                                </Items>
                                            </ext:RadioGroup>
    Thanks.
    Last edited by Baidaly; Mar 21, 2013 at 1:04 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Radio doesn't support Content, is just input element
  3. #3
    Quote Originally Posted by Vladimir View Post
    Hi,

    Radio doesn't support Content, is just input element
    Hello Vladimir,
    Thanks for the quick response. Okay, I got it. Why do we see the <Content> tag in available tags of ext:Radio control? Is it a not-implemented inheretance thing?

    I wanted to add objects to radio control to implement a form as attached below:

    Click image for larger version. 

Name:	UI-forum.png 
Views:	15 
Size:	18.8 KB 
ID:	5872

    I can implement above form using independent radio/check etc. controls. In this case I can not use advantages of using control groups like single select... Do you suggest an alternative way?
  4. #4
    Why do we see the <Content> tag in available tags of ext:Radio control? Is it a not-implemented inheretance thing?
    Content functionality is implemented in AbstractComponent but some controls cannot have content because it's main element doesn't accept children (like html input element)
    Field class is marked as INoneContentable therefore you should see the exception if try to add Content

    You don't need RadioGroup to implement your UI, use simple Container, set the same Name for radio controls, any required content place below Radio widget
  5. #5
    Quote Originally Posted by Vladimir View Post
    Content functionality is implemented in AbstractComponent but some controls cannot have content because it's main element doesn't accept children (like html input element)
    Field class is marked as INoneContentable therefore you should see the exception if try to add Content

    You don't need RadioGroup to implement your UI, use simple Container, set the same Name for radio controls, any required content place below Radio widget
    Issue is solved. Thanks for direction. Please mark as closed.

Similar Threads

  1. Replies: 5
    Last Post: Apr 28, 2012, 5:21 AM
  2. Radio control with embedded objects
    By Birgit in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2011, 7:32 AM
  3. Replies: 16
    Last Post: Sep 07, 2010, 6:31 PM
  4. [CLOSED] How to know how many radio buttons control contents a Panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 10, 2010, 5:52 PM
  5. Replies: 1
    Last Post: Mar 19, 2010, 8:35 PM

Posting Permissions