So I'm trying to use a RadWindowManager in conjuction with an appointment insert. So far I have the following:
VB Code-Behind:
Javascript functions:
The problem I seem to be having is that the radconfirmation window isn't even being called upon appointment insert, therefore the javascript function is returning a null or undefined value. If the radconfirm is not even being displayed, I can't pass the true or false value on to the inserting client event in order to go ahead and insert or cancel the insert. Anybody have any insight or have a working version of this? Any help would be greatly appreciated!
VB Code-Behind:
Protected Sub RadScheduler1_AppointmentInsert(sender As Object, e As Telerik.Web.UI.AppointmentInsertEventArgs) Handles RadScheduler1.AppointmentInsert RadWindowManager1.RadConfirm("Server radconfirm: Are you sure?", "confirmCallBackFn", 330, 100, Nothing, "Server RadConfirm", Nothing) End SubJavascript functions:
<script type="text/javascript"> function schedulerFormCreated() { $telerik.$(".rsRecurrenceOptionList li:eq(4)").hide(); } function confirmCallBackFn(arg) { return arg; } function OnClientAppointmentInserting(sender, eventArgs) { if(confirmCallBackFn()) { eventArgs.set_cancel(false); } else { eventArgs.set_cancel(true); } } </script>The problem I seem to be having is that the radconfirmation window isn't even being called upon appointment insert, therefore the javascript function is returning a null or undefined value. If the radconfirm is not even being displayed, I can't pass the true or false value on to the inserting client event in order to go ahead and insert or cancel the insert. Anybody have any insight or have a working version of this? Any help would be greatly appreciated!
