6 Answers, 1 is accepted
Could you please be more specific on the requirement as I didn't understood it?
If you want to hide the "Recurrence" checkbox please take a look at this forum post for a solution.
Greetings,
Veronica Milcheva
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Thanks
Thanks for clarification.
Please note that when you select the "Edit only this occurence .." option - you are editing an exception of the occurence. That's why you can perform a check whether the Appointment's RecurrenceState is an Exception and only in that case to disable the recurrence checkbox:
protected
void
RadScheduler1_FormCreated(
object
sender, SchedulerFormCreatedEventArgs e)
{
if
(e.Container.Mode == SchedulerFormMode.AdvancedEdit)
{
if
(e.Appointment.RecurrenceState == RecurrenceState.Exception)
{
Panel recurrencePanel = (Panel)e.Container.FindControl(
"RecurrenceCheckBoxPanel"
);
recurrencePanel.Enabled =
false
;
}
}
}
Kind regards,
Veronica Milcheva
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Is there any other way to find the control in FormCreated Event or it can be found directly as you have done this. Pls reply as i am facing Problem in finding the controls.
Thanks
You can try to use this code instead:
protected
void
RadScheduler1_FormCreated(
object
sender, SchedulerFormCreatedEventArgs e)
{
if
(e.Container.Mode == SchedulerFormMode.AdvancedEdit)
{
if
(e.Appointment.RecurrenceState == RecurrenceState.Exception)
{
RecurrenceEditor recurrenceEditor1 = e.Container.FindControl(
"RecurrenceEditor"
)
as
RecurrenceEditor;
RadioButton rb = (RadioButton)recurrenceEditor1.FindControl(
"RepeatFrequencyHourly"
);
CheckBox ck = (CheckBox)e.Container.FindControl(
"RecurrentAppointment"
);
ck.Enabled =
false
;
}
}
}
Hope this works for you.
Regards,
Plamen Zdravkov
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Regards