How to customize Delete Confirmation dialog for Recurring Appointment

4 posts, 1 answers
  1. Ruchir
    Ruchir avatar
    10 posts
    Member since:
    Dec 2010

    Posted 22 Dec 2010 Link to this post

    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
  2. Ruchir
    Ruchir avatar
    10 posts
    Member since:
    Dec 2010

    Posted 23 Dec 2010 Link to this post

    can anyone help ?
  3. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Dec 2010 Link to this post

    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.
  4. Ruchir
    Ruchir avatar
    10 posts
    Member since:
    Dec 2010

    Posted 11 Jan 2011 Link to this post

    Thank you Peter its working.... 
Back to Top