How to get access to control using jQuery

From the documentation in other versions this should work:

Using:

   
   

   
   
       
   
   
       
       
   



$("#schedule1").data("ejSchedule");

But it does not.

I even tried:

$("#schedule1").data("ejs-schedule");

Either way is undefined. Anyone have any ideas? 


1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team February 25, 2019 11:31 AM UTC

Hi Terrell, 

 
Thank you for contacting Syncfusion support. 

 
Kindly use the below code example to get EJ2 Scheduler instance. 

 
var scheduleObj = document.getElementById('schedule').ej2_instances[0];
 

Regards, 
Karthigeyan 


Loader.
Up arrow icon