Thanks for your update.
We have prepared the sample for your requirement “Need to change a resource group and reload the scheduler” which can be download from the following location:
In the above sample we have initially rendered the default Scheduler with two radio buttons named “Hotel Room” and “Medical Room”. When any one of the radio button is selected, Scheduler is refreshed with the corresponding resource group. Kindly refer to the following code example used in the above sample.
<Code>
function OnChange(args) {// this function will be called when the radio button is clicked
if (args.model.text == "Hotel Room") {
$("#Schedule1").ejSchedule({
group: {
resources: ["Rooms", "Owners"]
},
resources: [
{
field: "roomId",
title: "Room",
name: "Rooms", allowMultiple: false,
resourceSettings: {
dataSource: [
{ text: "Room1", id: 1, color: "#cb6bb2" },
{ text: "ROOM2", id: 2, color: "#56ca85" }],
text: "text", id: "id", color: "color"
}
}, {
field: "ownerId",
title: "Owner",
name: "Owners", allowMultiple: true,
resourceSettings: {
dataSource: [
{ text: "Nancy", id: 11, groupId: 1, color: "#ffaa00" },
{ text: "Steven", id: 12, groupId: 2, color: "#f8a398" },
{ text: "Michael", id: 13, groupId: 1, color: "#7499e1" }
],
text: "text", id: "id", groupId: "groupId", color: "color"
}
}],
});
}
}
</Code>
Regards,
Karthigeyan