[CLOSED] RadioGroup index/value

  1. #1

    [CLOSED] RadioGroup index/value

    Hi,

    Migrating to v2 I have the following code:

    <ext:RadioGroup ID="TipoPresencia" runat="server" ColumnsNumber="2" Vertical="true">
                                <Items>
                                    <ext:Radio runat="server" BoxLabel="<%$ AppRecursos : sm_txt_empleados %>" Checked="true" />
                                    <ext:Radio runat="server" BoxLabel="<%$ AppRecursos : sm_txt_agenda %>" />
                                    <ext:Radio runat="server" BoxLabel="<%$ AppRecursos : sm_txt_anotacionesElementosOrganizativos %>" />
                                    <ext:Radio runat="server" BoxLabel="<%$ AppRecursos : sm_txt_elementosOrganizativos %>" />
                                </Items>
                                <Listeners>
                                    <Change Fn="onRadioChange" />
                                </Listeners>
                            </ext:RadioGroup>
    Then inside of change function I try to get index of selected radio to operate with it like a value, because I can't put Value="1" for example in ext:Radio.

    How I must obtain index of selected radio or put a value in each radio and get it?
    Last edited by Daniil; Jun 20, 2012 at 2:52 PM. Reason: [CLOSED]
  2. #2
    I attach an image of getValue() result in v2

    Click image for larger version. 

Name:	example.png 
Views:	120 
Size:	7.8 KB 
ID:	4386

    In Ext.NET 1.x getValue() has id property and with it I do the following
    TipoPresencia.items.indexOfKey(TipoPresencia.getValue().id);
  3. #3
    Hi,

    If you need the Ext.NET v1 behavior, please use the getChecked method instead of the getValue one.

    Here are more details.
    http://docs.sencha.com/ext-js/4-1/#!...ethod-getValue

    Thanks for the report. We will add a respective changelog item.
  4. #4
    Thanks it works

Similar Threads

  1. how get selected index value of radiogroup
    By abhi_sheklohiya in forum 1.x Help
    Replies: 3
    Last Post: Mar 29, 2012, 10:12 PM
  2. Replies: 5
    Last Post: Sep 14, 2010, 12:43 PM
  3. Replies: 0
    Last Post: May 22, 2009, 7:59 AM
  4. [CLOSED] selected index
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 29, 2009, 7:46 AM
  5. [CLOSED] Selected index -1
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 19, 2009, 3:26 AM

Tags for this Thread

Posting Permissions