ToggleRadioButton

2 posts, 0 answers
  1. Vijaiprakash
    Vijaiprakash avatar
    1 posts
    Member since:
    Aug 2014

    Posted 26 Aug 2014 Link to this post

    I am not able to get whether RadButton - Radio has been "checked or not" at the client-side
    My Telerik HTML code is

    <Telerik:RadButton ID="rbFixed" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
    GroupName="rbGrpFixedOrVariable" Checked="true" Text="Fixed" CssClass="standard_radio">
    <Telerik:RadButton ID="rbVariable" runat="server" ButtonType="ToggleButton" ToggleType="Radio"
    GroupName="rbGrpFixedOrVariable" Checked="false" Text="Variable" CssClass="standard_radio">
     
    I am trying to access the same in my Javascript as

    document.getElementById('<%= rbFixed.ClientID %>').get_checked () - Didn't work

    document.getElementById('<%= rbFixed.ClientID %>').checked - Didn't work

    $('#<%= rbFixed.ClientID %>').get_checked () - Didn't work

    $find('#<%= rbFixed.ClientID %>').get_checked () - Didn't work

    Any pointers would help a lot.

    Thanks in Advance,
    Vijai
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Aug 2014 in reply to Vijaiprakash Link to this post

    Hi Vijaiprakash,

    Please try the below JavaScript which works fine at my end.

    JavaScript:
    $find("<%=rbFixed.ClientID%>").get_checked()

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top