Thank you for the detailed explanation of your case.
In regards to your question corresponding to your first approach, no, currently it is not possible to group by any other criteria than Resource. In this case you can change the approach a bit by creating a derived Resource type that holds a reference to your base appointments and add some logic to create a resource for each base appointment you add. This way you will also have the two types of appointments and they will be added to RadScheduler
as actual appointments, but you will also have a resource for each base appointment you add. Shortly said, you can achieve some kind of "binding" between the base appointments and the resources. With this approach I think you can overcome the limitations you mentioned.
As to the second approach, the only way to change the style of the appointments is via the AppointmentFormatting
event. Also, there are some style properties that are internally controlled by RadScheduler (shape, border, background) and there is a specific way to change each of them. RadScheduler
also recycles its elements regularly, so adding children to the approach with adding elements to RadScheduler
's cells might lead to additional complications. Nevertheless, this can be achieved by handling the CellFormatting
event and checking the Children
collection of the current cell:
sender, SchedulerCellEventArgs e)
(MyElementType)).Count == 0)
As to displaying the relation between appointments, I am not sure what appearance you are after, but you can use the Paint
event of RadScheduler
to draw lines between related appointments. Please refer to the attachment for more information on how to achieve this.
I hope I was able to answer your questions. Do not hesitate to write back if you need further assistance or if you have any additional questions.
All the best,
the Telerik team