Please help me to Customizable Recurence Dialog

3 posts, 0 answers
  1. imran
    imran avatar
    20 posts
    Member since:
    Oct 2010

    Posted 19 Jan 2011 Link to this post

    I want to customize the Recurrence Edit Dialog....i only want to remove the NO END DATE radio button...Please help me to find out the solution...
  2. imran
    imran avatar
    20 posts
    Member since:
    Oct 2010

    Posted 19 Jan 2011 Link to this post

    I have solved this....but one more problem i found that i made Custom EditAppointment Dialogue...First i make an appointment with daily recurrences....when i change the the start and date time of one appointment of that it does'nt change ...instead of that it change on default appointment...if me not using the customEditDialogue....so should i use any event for that to change one of the ouccrence appoint time change...

    Please help...

    thanks,
    Imran khan
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 21 Jan 2011 Link to this post

    Hi imran,

    Thank you for writing.

    You have to create a class that inherits EditRecurrenceDialog. In addition, it is important to have constructors that call the base constructors.
    public class recurrenceDlg: EditRecurrenceDialog
    {
        public recurrenceDlg(IEvent appointment)
            : base(appointment, null)
        {
        }
     
        public recurrenceDlg(IEvent appointment, ISchedulerData schedulerData)
            : base(appointment, schedulerData)
        {
        }
    }

    In order to show this dialog, you have to subscribe to the RecurrenceEditDialogShowing event of the RadScheduler and set an instance of the custom recurrence dialog to the arguments.
    this.radScheduler1.RecurrenceEditDialogShowing += new EventHandler<RecurrenceEditDialogShowingEventArgs>(radScheduler1_RecurrenceEditDialogShowing);
    void radScheduler1_RecurrenceEditDialogShowing(object sender, RecurrenceEditDialogShowingEventArgs e)
    {
        e.RecurrenceEditDialog = new recurrenceDlg(e.Appointment, this.radScheduler1);
    }

    In case that you have other related questions, feel free to write back.

    Greetings,
    Dobry Zranchev
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top