Set checked unchecked from Server Side

2 posts, 0 answers
  1. Jermaine
    Jermaine avatar
    13 posts
    Member since:
    Feb 2013

    Posted 01 Oct 2014 Link to this post

    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
        '  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
        ' 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"
                                                <telerik:RadButtonToggleState Text="AutoFill Disabled" PrimaryIconCssClass="rbToggleCheckbox"></telerik:RadButtonToggleState>
                                                <telerik:RadButtonToggleState Text="AutoFill Enabled" PrimaryIconCssClass="rbToggleCheckboxChecked"></telerik:RadButtonToggleState>
                                        <telerik:RadButton id="RadBtnSubscriptions" runat="server" CssClass="Subscriptions" ToggleType="CheckBox" ButtonType="StandardButton" AutoPostBack="false"
                                                <telerik:RadButtonToggleState Text="Subscriptions Disabled" PrimaryIconCssClass="rbToggleCheckbox"></telerik:RadButtonToggleState>
                                                <telerik:RadButtonToggleState Text="Subscriptions Enabled" PrimaryIconCssClass="rbToggleCheckboxChecked"></telerik:RadButtonToggleState>
  2. Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 02 Oct 2014 Link to this post

    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.

    Danail Vasilev

    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.

Back to Top