Can Recurrence Editor be customized to display only Monthly, Quarterly, Semi-Annual and Annual appointments?

4 posts, 1 answers
  1. Parvinder Grover
    Parvinder Grover avatar
    4 posts
    Member since:
    May 2010

    Posted 02 Jul 2010 Link to this post

    Dear Support,

    My application needs a recurring editor which will only show Monthly, Quarterly, Semi-Annual and Annual options for scheduling. I need to hide Hourly, Daily and Weekly recurrence rules in recurrence editor, and add Quarterly and Semi-Annual recurrence rules as per my application specs. Please advice what are my options.

    Thank you,
    Parvinder
  2. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 09 Jul 2010 Link to this post

    Hi Parvinder,

    You can hide the Hourly, Daily and Weekly options with the following jQuery code:
    function pageLoad() {
                  var $ = $telerik.$;
                  $(".rsRecurrenceOptionList").children().each(function (i) {
                      if (i < 3)
                          $(this).hide();
                  });
              }

    Quarterly and Semi-Annual recurrence options are not predefined, but they are essentially a variation of the monthly recurrence option.


    Regards,
    Peter
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Thiru
    Thiru avatar
    1 posts
    Member since:
    Nov 2017

    Posted 28 Dec 2017 in reply to Peter Link to this post

    Hi Peter,

    How to add validation to the RadSchedulerRecurrenceEditor?

    m using RadSchedulerRecurrenceEditor to get the date occurence list.I want to add validation to the control.can you help me add validation to this?

    <telerik:RadSchedulerRecurrenceEditor runat="server" Enabled="true" ID="Eventdaterecurrence"></telerik:RadSchedulerRecurrenceEditor>

     



  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4438 posts

    Posted 29 Dec 2017 Link to this post

    Hello,

    One approach is to apply the desired logic in the server-side events before inserting or updating appointments.
    Here is one example that shows similar logic used with RadScheduler: https://www.telerik.com/support/kb/aspnet-ajax/scheduler/details/how-to-validate-that-recurring-appointment-s-occurrences-doesn-t-overlap-(ms-outlook-doesn-t-allow-such-appointment-s-scheduling)

    Another approach is to use JS to hook to the necessary click events and access the controls you want to validate so you can perform your logic: https://www.telerik.com/forums/validation-and-default-selection-of-radschedulerrecurrenceeditor
    Note that you should still apply server validation.

    A third option you can look into is adding a Validator control during server rendering (the PreRender or the OnLoad event for example), and use similar logic to this example: https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/customizing-the-advanced-form/handling-formcreated#add-a-new-custom-validator-for-the-description-field. You would need to review the control tree and traverse it to get the desired controls, and you should still implement server validation.

     

    Regards,

    Marin Bratanov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top