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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

144184 Apr 23,2019 10:16 PM UTC Apr 24,2019 09:36 AM UTC Vue 1
loading
Tags: Schedule
Marco
Asked On April 23, 2019 10:16 PM UTC

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

Nevitha Ravi [Syncfusion]
Replied On April 24, 2019 09:36 AM UTC

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon