Thank you for contacting Syncfusion support.
In the provided code example, resource data source is altered with the filtered object, therefore initial data source will not maintain. We have prepared the sample to render the resource based on the user selection which can be viewed from the below location.
Kinldy refer the below code example used in the sample.
<Code>
function onCreate(args) { // this function will be during the initial load
resData = $.extend(true, [], this.model.resources[0].resourceSettings.dataSource);
}
function onChange(args) { // this function will be called when the radio button is clicked
var resourceObject = ej.DataManager(resData).executeLocal(ej.Query().where("text", ej.FilterOperators.equal, args.model.text)); // here we will filter particular resource that is clicked
$("#Schedule1").ejSchedule({
group: {
resources: ["Owners"]
},
resources: [{
field: "ownerId",
title: "Owner",
name: "Owners", allowMultiple: true,
resourceSettings: {
dataSource: $.extend(true, [], resourceObject),
text: "text", id: "id", groupId: "groupId", color: "color"
}
}]
});
}
</Code>
Regards,
Karthigeyan