Hi Shubham,
Greetings from Syncfusion Support..!
We have prepared a sample for all your requirements and same can be available in following link,
Q1: is it possible that one datasource is view only and the other one can be edited..for example. the bookings datasource events can't be edited or deleted..but the availability schedules can be edited..
Q2: is it possible that when i click on some booking event i can show some information related to booking i want to show like some subject or description or price.
We can achieve those requirements by making use of the dataBound event of our scheduler. Kindly refer to the below code snippets and the same can be available in the above sample.
Code snippet:
public onDataBound(): void {
if (this.flag) {
let length = this.data.length;
for (let i = 0; i < length; i++) {
if (this.data[i].Type == "Booking") {
this.data[i].IsReadonly = true;
}
}
this.scheduleObj.refreshEvents();
this.flag = false;
}
} |
Q3: they should have different colors...can you help me with it?
T You can achieve this by using eventRendered event of our scheduler. Please refer below codes same can be available in above sample.
Code snippet:
public onEventRendered(args: any): void {
if (args.data.Type == "Booking") {
args.element.style.backgroundColor = "#4a4040";
}
} |
Kindly try the above solution and get back to us if you need any further assistance.
Regards,
Hareesh