Rad Schedular Edit only this occurence problem

5 posts, 0 answers
  1. Kalpna
    Kalpna avatar
    37 posts
    Member since:
    Jun 2013

    Posted 21 Sep 2013 Link to this post

    Hello...
    When we click on recurrence activity to edit it. It shows two radio buttons (Edit only this occurrence and edit the series). I want to use only "Edit the series". How can i remove the "Edit only this occurrence" button from the window. Or is there any way to remove both and the recurring activity is displayed in edit mode? Please help me, its urgent.
    Thanks in advance.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 Sep 2013 Link to this post

    Hi Kalpna,

    One suggestion is you can directly open the Edit Appointment window in Recurrence Mode (that is Edit the Series) without displaying the confirmation popup whether you need to edit the occurrence or series. Please check the sample code which works fine at my end.

    ASPX:
    <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="WeekView" DisplayDeleteConfirmation="false"
        DisplayRecurrenceActionDialogOnMove="false" OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing">
    </telerik:RadScheduler>

    JavaScript:
    function OnClientRecurrenceActionDialogShowing(sender, args)
    {
        var action = args.get_recurrenceAction();
        var appointment = args.get_appointment();
        if (action == Telerik.Web.UI.RecurrenceAction.Edit)
        {
            args.set_cancel(true);
            sender.showAdvancedEditForm(appointment);
        } else if (action == Telerik.Web.UI.RecurrenceAction.Delete)
        {
            args.set_cancel(true);
            sender.deleteAppointment(appointment, false)
        } else //If the action is resize the event is just canceled.
        {
            args.set_cancel(false);
        }
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kalpna
    Kalpna avatar
    37 posts
    Member since:
    Jun 2013

    Posted 24 Sep 2013 Link to this post

    Thank you so much. But this will providing a blank form because the scheduler does not get the id of appointment.
    And on Edit the series it will get the id. I just want that, whether the Radio Button "Edit Only this Occurrence" will be hidden and by default the Radio Button "Edit the series" is selected. so that it gets the id of appointment. Please help me, Its urgent.
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Sep 2013 Link to this post

    Hi Kalpna,

    Please try the following JavaScript in the OnClientAppointmentContextMenuItemClicked client event of the RadScheduler.

    JavaScript:
    <script type="text/javascript">
        function OnClientAppointmentContextMenuItemClicked(sender, eventArgs) {
            $telerik.$('.rsModalContent').children().first().hide();
            $telerik.$('#choiceOccurrenceSpan_1').attr('checked', 'checked');
        }
    </script>

    Thanks,
    Shinu.
  6. Kalpna
    Kalpna avatar
    37 posts
    Member since:
    Jun 2013

    Posted 02 Oct 2013 Link to this post

    Thanks Shinu,

    But it does not do anything. Is there any way, when we double clicks on an recurring activity, then window does not show Edit only this occurrence button, it shows only Edit the Series. And it is by default selected.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017