I have two RadButton controls setup as Radio button toggle buttons. Code below:
I want to setup an OnClientClicked event JavaScript function to fire that will hide or show controls based on which of the two controls are displayed. Nothing too hard. What are the parameters passed into the OnClientClicked event and how can I get the Id of the control that was clicked?
<
telerik:RadButton
ID
=
"optOrgPosting"
ClientIDMode
=
"AutoID"
runat
=
"server"
GroupName
=
"PostingType"
ToggleType
=
"Radio"
OnClientClicked
=
"onPostingTypeChanged"
Text
=
"I am posting for my nonprofit organization/public school/university."
AutoPostBack
=
"False"
ButtonType
=
"ToggleButton"
Skin
=
"Silk"
></
telerik:RadButton
>
<
br
/>
<
telerik:RadButton
ID
=
"optSFPosting"
ClientIDMode
=
"AutoID"
runat
=
"server"
GroupName
=
"PostingType"
ToggleType
=
"Radio"
OnClientClicked
=
"onPostingTypeChanged"
Text
=
"I am a search firm, advertising firm, consultant or other company posting on behalf of a nonprofit organization."
AutoPostBack
=
"False"
ButtonType
=
"ToggleButton"
Skin
=
"Silk"
></
telerik:RadButton
>
I want to setup an OnClientClicked event JavaScript function to fire that will hide or show controls based on which of the two controls are displayed. Nothing too hard. What are the parameters passed into the OnClientClicked event and how can I get the Id of the control that was clicked?