May 03, 2011, 10:25 PM
[CLOSED] RadioGroup and getting the value?=
Hey,
trying to get the selected value in a RadioGroup. Not working very well. I must be missing something.
The problem is that if I have the Change listeners for each "radio" in the radioGroup it fires twice, once for each Radio. That wont do. If I place it in the RadioGroup (ie outside of the Radio:s) when Its not fired at all, or at least I dont see it.
So, in this example the DirectMethod is fired twice (the order depends on what you clicked).
trying to get the selected value in a RadioGroup. Not working very well. I must be missing something.
The problem is that if I have the Change listeners for each "radio" in the radioGroup it fires twice, once for each Radio. That wont do. If I place it in the RadioGroup (ie outside of the Radio:s) when Its not fired at all, or at least I dont see it.
So, in this example the DirectMethod is fired twice (the order depends on what you clicked).
<ext:RadioGroup runat="server" Vertical="true" Width="300">
<Items>
<ext:Radio ID="RadioActive" runat="server" BoxLabel="A" InputValue="0">
<Listeners>
<Change Handler="Ext.net.DirectMethods.Show(0);" />
</Listeners>
</ext:Radio>
<ext:Radio ID="RadioNext" runat="server" BoxLabel="B" InputValue="1">
<Listeners>
<Change Handler="Ext.net.DirectMethods.Show(1);" />
</Listeners>
</ext:Radio>
</Items>
</ext:RadioGroup>
This code I cant see working at all:<ext:RadioGroup runat="server" Vertical="true" Width="300">
<Items>
<ext:Radio ID="RadioActive" runat="server" BoxLabel="A" InputValue="0">
</ext:Radio>
<ext:Radio ID="RadioNext" runat="server" BoxLabel="B" InputValue="1">
</ext:Radio>
</Items>
<Listeners>
<Change Handler="Ext.net.DirectMethods.Show(this.getValue());" />
</Listeners>
</ext:RadioGroup>
Any ideas? =)
Last edited by Daniil; May 04, 2011 at 10:08 AM.
Reason: [CLOSED]