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

I need open, close and open again consecutively the modal of the template editor (component)

Hi :D .  I need open, close and open again consecutively the modal of the template editor (component)

1 Reply

NR Nevitha Ravi Syncfusion Team April 24, 2019 01:36 AM

Hi Marco, 

Greetings from Syncfusion Support. 

We suspect that your requirement is closing the window after certain period of time. In the following sample we have opened the editor window on external button click and close it automatically after 5 seconds if user doesn’t create event or close the window. 

 onSubmit: function() { 
      let scheduleObj = document.getElementById("Schedule").ej2_instances[0]; 
      let cellData = { 
        startTime: new Date(2018, 5, 4, 10, 0), 
        endTime: new Date(2018, 5, 4, 11, 0) 
      }; 
      scheduleObj.openEditor(cellData, "Add"); 
      setTimeout(function() { 
        var obj = document.getElementsByClassName("e-schedule-dialog")[0] 
          .ej2_instances[0]; 
        obj.hide(); 
      }, 5000); 
   


Please clarify us with more details like use-case scenario, image depicting your requirement if we misunderstood your query. 

Regards, 
Nevitha 


Loader.
Live Chat Icon For mobile
Up arrow icon