PDA

View Full Version : [FIXED] [V0.6] Radio fields issue



Lex
Sep 23, 2008, 6:14 AM
Hi there!

I found an issue on the radio field control. I have two radio fields like this:



<ext:Radio ID="Radio1" runat="server" Name="a"></ext:Radio>
<ext:Radio ID="Radio2" runat="server" Name="a"></ext:Radio>


In the code behind, when I check a radio field and then I click on a button, the .checked property of the checked radio return a "False" value.

What's the matter? Is this a bug?

Thanks
Ale.

geoffrey.mcgill
Sep 23, 2008, 11:43 AM
Hi Ale,

This was a bug with how the "name" attribute was being applied in the <ext:Radio> control (and others).

We've changed things around a bit and removed the .Name property from all the Field controls.

With the <ext:Radio>, you can now group the Radio inputs by using the .GroupName property.

Example


<ext:Radio ID="Radio1" runat="server" GroupName="Group1" />
<ext:Radio ID="Radio2" runat="server" GroupName="Group1" />
The new code has been committed to svn and will be publicly available with the v0.6 release.

Hope this helps.