Hello Piyush,
To your first question - yes, you can cancel the
OnClientAppointmentMoving event. Here is how:
<script type="text/javascript"> |
function OnClientAppointmentMoving(sender, eventArgs) |
{ |
eventArgs.set_cancel(true); |
} |
</script> |
<telerik:RadScheduler ID="RadScheduler1" OnClientAppointmentMoving="OnClientAppointmentMoving" runat="server" > |
|
As for the second question, no special class is rendered for appointments in resource view. A workaround which you can use is to check in the AppointmentCreated event what is RadScheduler's SelectedView and set the CssClass property of the appointment respectively:
protected void RadScheduler1_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e) |
{ |
if (RadScheduler1.SelectedView == Telerik.Web.UI.SchedulerViewType.ResourceView) |
{ |
e.Appointment.CssClass = "ResourceCssClass"; |
} |
} |
Best wishes,
Peter
the Telerik team