How can I check or uncheck the button from server side? I'm using the following code to set the checked state of the Radbutton control from the server side to no avail.
If
(AutoFillState = 1)
Then
' set the checked state of the control
RadBtnAutoFill.Checked =
True
Else
' set the checked state of the control
RadBtnAutoFill.Checked =
False
End
If
' Set the Subscription radio button that is that toggles their subscription list preferences
If
(SubscriptionState = 1)
Then
' set the checked state of the control
RadBtnSubscriptions.Checked =
True
Else
' set the checked state of the control
RadBtnSubscriptions.Checked =
False
End
If
<
telerik:RadButton
id
=
"RadBtnAutoFill"
runat
=
"server"
CssClass
=
"AutoFill"
ToggleType
=
"CheckBox"
ButtonType
=
"StandardButton"
AutoPostBack
=
"false"
OnClientToggleStateChanged
=
"OnAutoFillToggleStateChanged"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Text
=
"AutoFill Disabled"
PrimaryIconCssClass
=
"rbToggleCheckbox"
></
telerik:RadButtonToggleState
>
<
telerik:RadButtonToggleState
Text
=
"AutoFill Enabled"
PrimaryIconCssClass
=
"rbToggleCheckboxChecked"
></
telerik:RadButtonToggleState
>
</
ToggleStates
>
</
telerik:RadButton
>
<
telerik:RadButton
id
=
"RadBtnSubscriptions"
runat
=
"server"
CssClass
=
"Subscriptions"
ToggleType
=
"CheckBox"
ButtonType
=
"StandardButton"
AutoPostBack
=
"false"
OnClientToggleStateChanged
=
"OnSubsToggleStateChanged"
>
<
ToggleStates
>
<
telerik:RadButtonToggleState
Text
=
"Subscriptions Disabled"
PrimaryIconCssClass
=
"rbToggleCheckbox"
></
telerik:RadButtonToggleState
>
<
telerik:RadButtonToggleState
Text
=
"Subscriptions Enabled"
PrimaryIconCssClass
=
"rbToggleCheckboxChecked"
></
telerik:RadButtonToggleState
>
</
ToggleStates
>
</
telerik:RadButton
>