I have a RadComboBox which is setup as follows
My goal is to prevent a selection change in certain scenarios. Currently, I enforce this using good ole'
js window.confirm as follows
However, I would like to change this to utilize radconfirm with a <ConfirmTemplate>. Yet, radconfirm does not appear to be a blocking call...
Can anyone provide an example of how to prevent the RadComboBox selection change with a blocking radconfirm that uses a custom <ConfirmTemplate>???
Any help would be greatly appreciated.
<
telerik:RadComboBox
ID
=
"radcombo_1"
AutoPostBack
=
"true"
runat
=
"server"
onselectedindexchanged
=
"radcombo_1_SelectedIndexChanged"
OnClientSelectedIndexChanging
=
"SelectionChange"
>
</
telerik:RadComboBox
>
My goal is to prevent a selection change in certain scenarios. Currently, I enforce this using good ole'
js window.confirm as follows
function SelectionChange(sender, eventArgs) {
try {
var text = "";
text = sender.get_text();
if (text != "Select") {
var allow = false;
allow = TheConfirm();
if (allow == true) {
eventArgs.set_cancel(false);
}
else {
eventArgs.set_cancel(true);
}
}
}
catch (errA) {
}
}
function TheConfirm() {
return confirm("Change?");
}
However, I would like to change this to utilize radconfirm with a <ConfirmTemplate>. Yet, radconfirm does not appear to be a blocking call...
Can anyone provide an example of how to prevent the RadComboBox selection change with a blocking radconfirm that uses a custom <ConfirmTemplate>???
Any help would be greatly appreciated.