Feb 22, 2010, 7:49 AM
[CLOSED] [1.0] Assign custom values to RadioGroup items
Is it possible to assign custom values to RadioGroup items?
So, how do I change the radio values? I didn't succeed changing their names (using a 'name' attribute, see my other post, it causes the GroupName to be disregarded, amongst some other undesired effects).
<ext:RadioGroup ID="RadioGroup1" runat="server">
<Items>
<ext:Radio ID="Radio1" runat="server" GroupName="type" Checked="true" />
<ext:Radio ID="Radio2" runat="server" GroupName="type" />
</Items>
</ext:RadioGroup>
When submitting, this gives me a form field called 'type', containing either 'Radio1' or 'Radio2' (the ID of the selected radio button). I would like to customize this value without changing the radio IDs. This is important form me because I want the ID of the radios to clearly point out that they're radios (e.g. 'SendMailRadio') while the post values should only describe what kind of information/action they contain/describe (e.g. 'sendMail') and not what kind of control is representing them.So, how do I change the radio values? I didn't succeed changing their names (using a 'name' attribute, see my other post, it causes the GroupName to be disregarded, amongst some other undesired effects).