This is a migrated thread and some comments may be shown as answers.

Set checked unchecked from Server Side

1 Answer 74 Views
Button
This is a migrated thread and some comments may be shown as answers.
Jermaine
Top achievements
Rank 1
Jermaine asked on 01 Oct 2014, 02:11 PM
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>

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 02 Oct 2014, 12:44 PM
Hi Jermaine,

I have already replied to the support ticket that was opened by you on this regard and I paste my answer below for the rest of the forum member.

I have tried reproducing the mentioned issue but to no avail. You can watch the short video test in the attached archive.

If you are not using the latest official Telerik UI version - 2014.2.724, does upgrading to it resolve the issue? If this step, however, do not help it would be better to try to reproduce the problem with the attached VS example and then send it back to me, so that i can proceed further with the investigation.



Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Button
Asked by
Jermaine
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or