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
close icon

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 03:03 PM UTC

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 



JO James Osborne January 24, 2019 09:11 AM UTC

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



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

 
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. 
 
Regards, 
Karthigeyan 
 
 


Loader.
Live Chat Icon For mobile
Up arrow icon