This is a migrated thread and some comments may be shown as answers.
Please help me to Customizable Recurence Dialog
2 Answers 59 Views
This is a migrated thread and some comments may be shown as answers.
imran
Top achievements
Rank 1
imran asked on 19 Jan 2011, 07:13 AM
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 Answers, 1 is accepted

Sort by
0
imran
Top achievements
Rank 1
answered on 19 Jan 2011, 08:22 AM
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
0
Dobry Zranchev
Telerik team
answered on 21 Jan 2011, 04:18 PM
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.
Asked by
imran
Top achievements
Rank 1
Answers by
imran
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or