Unplanned
Last Updated: 16 Feb 2018 19:11 by Donny
ADMIN
Peter Milchev
Created on: 26 May 2017 15:23
Category: Scheduler
Type: Bug Report
0
Mobile Scheduler recurrence button in AdvancedForm shows wrong text
The Button text initially shows "Never", even though the appointment has a different recurrence. https://www.screencast.com/t/55Rl1CSa7F7y
2 comments
Donny
Posted on: 16 Feb 2018 19:11
deleted by dkrause
ADMIN
Peter Milchev
Posted on: 31 Jan 2018 09:11
Workarounds: 

1. Use Web Service binding where the issue is not observed

2. Use the following workaround that could make the text of the button "Edit Recurrence" every time

function OnClientFormCreated(sender, args) {
    // it is in Mobile rendering
    if (sender.get_renderMode() == 4) {
        var $ = $telerik.$,
        $T = Telerik.Web.UI,
        $TRE = $T.SchedulerRecurrenceEditor;
  
        var $recurrenceToggle = $(".rsAdvRepeat");
        $recurrenceToggle.text("Edit Recurrence");
  
        // If you use this workaround, the text will be always "Edit Recurrence"
        $TRE.NativeView.prototype._updateRecurrenceButtonText = function () {
            var $recurrenceToggle = $(this._getElement("AppointmentRepeat"));
            $recurrenceToggle.text("Edit Recurrence");
        }
    }
}

If you do not override the _updateRecurrenceButtonText and only set the recurrenceToggle text, then you could have the correct value as the button text when you click the button and then select a new recurrence rule.