Hi James,
Yes it is possible to pass resource collection as additional parameter in appointmentSettings.query and for the same we have prepared a sample for your reference which can be downloaded from the following link.
<script type="text/javascript">
function onCreate() {
var schObj = $('#Schedule1').ejSchedule("instance");
var query = new ej.Query().addParams('Resources', schObj.model.resources[0].resourceSettings.dataSource);
schObj.option("appointmentSettings.query", query);
}
</script>
Controller
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public static object GetData(String CurrentView, String CurrentAction, DateTime CurrentDate, ArrayList Resources)
{
….
} |
Please check the sample and let us know if you need further assistance.
Regards,
Nevitha