Hi,
I have a Radio button group on my page as part of a form . How do i detect which of the radio buttons has been selected in the server side code.? Is there an easier way than testing each button to see if it is checked?
Chris
I have a Radio button group on my page as part of a form . How do i detect which of the radio buttons has been selected in the server side code.? Is there an easier way than testing each button to see if it is checked?
Chris
<
telerik:RadButton
ID
=
"NordicInclBtn"
runat
=
"server"
GroupName
=
"NordicsGroup"
Checked
=
"true"
Skin
=
"Office2010Blue"
Text
=
"RadButton"
ToggleType
=
"Radio"
AutoPostBack
=
"false"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Text
=
"Include"
PrimaryIconCssClass
=
"rbToggleRadioChecked"
/>
<
telerik:RadButtonToggleState
Text
=
"Include"
PrimaryIconCssClass
=
"rbToggleRadio"
/>
</
ToggleStates
>
</
telerik:RadButton
>
<
telerik:RadButton
ID
=
"NordicExcBtn"
runat
=
"server"
GroupName
=
"NordicsGroup"
AutoPostBack
=
"false"
Skin
=
"Office2010Blue"
Text
=
"RadButton"
ToggleType
=
"Radio"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Text
=
"Exclude"
PrimaryIconCssClass
=
"rbToggleRadioChecked"
/>
<
telerik:RadButtonToggleState
Text
=
"Exclude"
PrimaryIconCssClass
=
"rbToggleRadio"
/>
</
ToggleStates
>
</
telerik:RadButton
>
<
telerik:RadButton
ID
=
"NordicOnlyBtn"
runat
=
"server"
GroupName
=
"NordicsGroup"
AutoPostBack
=
"false"
Skin
=
"Office2010Blue"
Text
=
"RadButton"
ToggleType
=
"Radio"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Text
=
"Only"
PrimaryIconCssClass
=
"rbToggleRadioChecked"
/>
<
telerik:RadButtonToggleState
Text
=
"Only"
PrimaryIconCssClass
=
"rbToggleRadio"
/>
</
ToggleStates
>
</
telerik:RadButton
>