We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Passing Resources LoadOnDemand

is it possible to pass a collection of resources with appointments data using ladondemand?

3 Replies

NR Nevitha Ravi Syncfusion Team January 23, 2019 10:03 AM

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);  
 [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. 


JO James Osborne January 24, 2019 04:11 AM

appolgies I meant passing from the web method not to the web method

KK Karthigeyan Krishnamurthi Syncfusion Team January 25, 2019 04:52 AM

Thanks for your update. 
Currently it is not possible to send the resource collection along with appointments from back end during initial load using load on demand concept. 

Live Chat Icon For mobile
Up arrow icon