I have a radbutton that works with a validation group to check a drop down before showing a confirmation popup. I have found the OnClientClicked is firing before the validation is complete. I'm wondering if this could be related to the current issue with the radbutton and the Q1 2013 release. I am currently running last night's internal build.
<
telerik:RadScriptBlock
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function VALIDATEME(sender, args) {
args.set_cancel(!window.confirm('Validate?'));
}
</
script
>
</
telerik:RadScriptBlock
>
<
telerik:RadButton
ID
=
"SaveButton"
runat
=
"server"
CausesValidation
=
"true"
CommandName
=
"Save"
Text
=
"Save"
OnClientClicked
=
"VALIDATEME"
ValidationGroup
=
"Save"
/>
<
telerik:RadComboBox
ID
=
"combo"
runat
=
"server"
/>
<
asp:RequiredFieldValidator
ID
=
"validator"
runat
=
"server"
ControlToValidate
=
"combo"
ValidationGroup
=
"Save"
InitialValue
=
""
ErrorMessage
=
"Error!"
Text
=
"*"
/>
<
asp:ValidationSummary
ID
=
"ValidationSummary"
runat
=
"server"
ValidationGroup
=
"Save"
/>