I have the following code on my aspx page
<table width="800px"><tr><td align="right">
<telerik:RadButton ID="ToggleResponseView" OnCommand="OnToggleResponseView" AccessKey="1" runat="server" ButtonType="StandardButton" ToggleType="CustomToggle">
<ToggleStates>
<telerik:RadButtonToggleState Text="SVIEW" />
<telerik:RadButtonToggleState Text="FRECORD" />
</ToggleStates>
</telerik:RadButton>
</td>
<td>
<asp:CheckBox ID="chkisSummary" runat="server" AutoPostBack="true" OnClientToggleStateChanged="chkSummaryAll" OnCheckedChanged="ViewSummaryAll" Checked="false" Visible="true" text="Show All"/>
</td></tr></table>
<script type="text/javascript">
function chkSummaryAll(sender, args) {
switch (args.get_currentToggleState().get_text()) {
case "SVIEW":
document.getElementById("chkisSummary").checked = false;
alert("RadButton was clicked.");
break;}
}
</script>
I want to hide the check box 'chkisSummary' when the toggle button ttext is 'SVIEW'. However for somne reason the checkbox object is coming as Null and the javascript does not work.
Please suggest.