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

ToggleRadioButton

1 Answer 64 Views
Button
This is a migrated thread and some comments may be shown as answers.
Vijaiprakash
Top achievements
Rank 1
Vijaiprakash asked on 26 Aug 2014, 02:43 PM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Aug 2014, 04:44 AM
Hi Vijaiprakash,

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

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

Thanks,
Princy.
Tags
Button
Asked by
Vijaiprakash
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or