This is a migrated thread and some comments may be shown as answers.

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

3 Answers 119 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Parvinder Grover
Top achievements
Rank 1
Parvinder Grover asked on 02 Jul 2010, 07:46 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 09 Jul 2010, 12:00 PM
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
0
Thiru
Top achievements
Rank 1
answered on 28 Dec 2017, 11:47 AM

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>

 



0
Marin Bratanov
Telerik team
answered on 29 Dec 2017, 09:24 AM

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.
Tags
Scheduler
Asked by
Parvinder Grover
Top achievements
Rank 1
Answers by
Peter
Telerik team
Thiru
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or