Search code examples
kendo-uirecurrencekendo-scheduler

Kendo UI - Hide "End: Never" option from Recurrence Editor


I am having trouble to hide one option in recurrence editor in a standardized way. I have tried to hide it by custom code but it sometimes creates not predictable behaviour.

This is what I am trying to hide:

enter image description here


Solution

  • I just got a response from Telerik's support, which I pay for. Splice the dropdown's data and re-set it:

    edit: function (e) {
        // remove Yearly" from re-occurence dropdown
        var ddl = $('input[title="Recurrence editor"]').data('kendoDropDownList');
        if (ddl) {
          var data = ddl.dataSource.data();
          data = data.slice(0, 4);
          ddl.setDataSource(data);
        }
    },
    

    Working Dojo.