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

Open template when create schedule

Hello, can you help me pls ^^, not open the modal template :((((

onCreated: function(args) {
console.log('onCreated')

/* Inicio para arreglar el bug del rendereo */

let cellData = {
startTime: new Date(2019, 5, 4, 10, 0),
endTime: new Date(2019, 5, 4, 11, 0)
};
this.$refs.scheduleObj.ej2Instances.openEditor(cellData, 'Add');

/* Fin para arreglar el bug del rendereo */
},

1 Reply

NR Nevitha Ravi Syncfusion Team April 26, 2019 09:42 AM UTC

Hi Marco, 

Greetings from Syncfusion Support. 

We have achieved your requirement of opening the editor template on initial loading of scheduler using dataBound event, please refer the following sample. 

    onDataBound: function(args) { 
      if (this.flag) { 
        let cellData = {  
          startTime: new Date(2018, 5, 4, 10, 0),  
          endTime: new Date(2018, 5, 4, 11, 0) 
        };  
        this.$refs.scheduleObj.ej2Instances.openEditor(cellData, 'Add'); 
        this.flag = false; 
     
   


Regards, 
Nevitha 


Loader.
Live Chat Icon For mobile
Up arrow icon