Thank you for contacting Syncfusion support.
We have prepared the sample to dynamically load the resource group by using ajax post which can be download from the below location.
Kindly refer the below code example used in the sample.
<Code>
$.ajax({
type: "POST",
url: "/Schedule/Resgroup",
data: { name: args.model.text },
dataType: "json",
success: function (result) {
$("#Schedule1").ejSchedule({
group: {
resources: ["Rooms", "Owners"]
},
resources: [
{
field: "roomId",
title: "Room",
name: "Rooms", allowMultiple: false,
resourceSettings: {
dataSource: result.rooms, // assigning the data source from controller
text: "text", id: "id", color: "color"
}
}, {
field: "ownerId",
title: "Owner",
name: "Owners", allowMultiple: true,
resourceSettings: {
dataSource: result.owners, // assigning the data source from controller
text: "resText", id: "resId", groupId: "groupid", color: "rescolor"
}
}],
});
},
});
</Code>
Regards,
Karthigeyan