Hi.
I have a radbutton that is hooked up with the OnClientClicking event to a Javascript function. Inside this function, I'm calling radConfirm, and passing it a callback function. Within this callback function, I am evaluating the response, and then calling the .click() method in order to restart the process.
I'm expecting the .click() method to re-call the OnClientClicking event (which has logic to handle the fact that it's being called again and, if necessary suppress the radconfirm). However, it doesn't appear like this is happening.
Am I doing something wrong?
Thanks
Fergal
I have a radbutton that is hooked up with the OnClientClicking event to a Javascript function. Inside this function, I'm calling radConfirm, and passing it a callback function. Within this callback function, I am evaluating the response, and then calling the .click() method in order to restart the process.
I'm expecting the .click() method to re-call the OnClientClicking event (which has logic to handle the fact that it's being called again and, if necessary suppress the radconfirm). However, it doesn't appear like this is happening.
Am I doing something wrong?
<telerik:RadButton runat="server" ID="btnTest" OnClientClicking="clicking" />var LastClickedItem = null;var clickCalledfromConfirm = false;function clicking(sender, args){ if (!clickCalledfromConfirm) { args.set_cancel(true); LastClickedItem = sender; radconfirm("Are you sure you want to do this?", confirmCallBack); } else { args.set_cancel(false); }}function confirmCallBack(args){ if (args) { clickCalledFromConfirm = true; LastClickedItem.click(); }}Thanks
Fergal