This is a migrated thread and some comments may be shown as answers.

How to customize Delete Confirmation dialog for Recurring Appointment

3 Answers 165 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Ruchir
Top achievements
Rank 1
Ruchir asked on 22 Dec 2010, 03:00 PM
Hi,
    I am creating recurring appointment.I try to delete an appointment delete confirmation dialog popped up with two option
1.Delete this occurence
2.Delete series.

Now i want only to display (Delete series) option i am using following code,beacause of this delete Confirmation  dialog not shown.
function OnClientRecurrenceActionDialogShowing(sender, eventArgs)

    eventArgs.set_cancel(true);  
    eventArgs.set_editSeries(true);
}

Is there any way to show only one option i,e (Delete series) ? Can anyone Help ?


Thanks,
Ruchir

3 Answers, 1 is accepted

Sort by
0
Ruchir
Top achievements
Rank 1
answered on 23 Dec 2010, 12:52 PM
can anyone help ?
0
Accepted
Peter
Telerik team
answered on 28 Dec 2010, 11:17 AM
Hello Ruchir,

Please, try the following jQuery solution:
<script type="text/javascript">
       function OnClientRecurrenceActionDialogShowing(sender, args) {
           if (args.get_recurrenceAction() == 2) {
               args.set_editSeries(true);
               var $ = $telerik.$;
               setTimeout(function () {
                   $(".rsModalInner .rsModalContent :radio:first").hide();
                   $(".rsModalInner .rsModalContent :radio").attr("checked", "checked");
               }, 100);
           }
       }
      
   </script>
   <telerik:RadScheduler runat="server" ID="RadScheduler1" OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing">
   </telerik:RadScheduler>


All the best,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Ruchir
Top achievements
Rank 1
answered on 11 Jan 2011, 02:44 PM
Thank you Peter its working.... 
Tags
Scheduler
Asked by
Ruchir
Top achievements
Rank 1
Answers by
Ruchir
Top achievements
Rank 1
Peter
Telerik team
Share this question
or