9 Answers, 1 is accepted
HTH
Server-side solution is also possible. For example:
| protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e) |
| { |
| if([MyUserCondition]) |
| { |
| e.Appointment.AllowDelete = false; |
| e.Appointment.AllowEdit = false; |
| } |
| } |
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
function onAppointmentClick(sender, eventArgs)
{
alert(
"Appointment click: " + eventArgs.get_appointment().get_subject());
if(eventArgs.get_appointment().get_subject() == 'Breakfast')
{
eventArgs.AllowDelete =
false;
}
}
I added this function. How do I cancel the next serverside or even how not to display the DELETE X on the right hand corner of the appointment.
function onAppointmentClick(sender, eventArgs)
{
alert(
"Appointment click: " + eventArgs.get_appointment().get_subject());
if(eventArgs.get_appointment().get_subject() == 'Breakfast')
{
eventArgs.AllowDelete =
false;
}
}
I added this function. How do I cancel the next serverside or even how not to display the DELETE X on the right hand corner of the appointment.
protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e)
{
e.Appointment.AllowDelete =
false;
e.Appointment.AllowEdit =
false;
}
and this doesnt seem to be helping out. It doesnt seem to recognize this. I am also not able to get response.write on this event handler.
Hi Sunil,
Probably, you haven't attached to the event handler. Could you please use a debugger to verify if you get in the
AppointmentDataBound event handler. Note, that using Response.Write will not be a valid test if you have AJAX involved.
You can send us a simple working demo project via a support ticket too.
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
In this case, we will wait for a support ticket with a simple project demonstrating this problem.
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center