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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Enter key on textbox is closing event editor

Thread ID:





143957 Apr 11,2019 02:45 PM UTC Apr 15,2019 03:40 AM UTC JavaScript - EJ 2 3
Tags: Schedule
Asked On April 11, 2019 02:45 PM UTC

Im using schedule control and i have a autocomplete textbox inside the event editor. When i type text in the autocomplete, it show me the results, but, when ai nagivation to the item and press Enter Key, the event editor closing. I set allowKeyboardInteraction:false, but not work.

How can i disable the Enter key in this case?

Thank you 

Karthigeyan Krishnamurthi [Syncfusion]
Replied On April 12, 2019 06:31 AM UTC

Dear Customer, 
Greetings from Syncfusion. 
Please use the below code example to achieve your requirement. 
popupOpen: function (args) { 
    if (args.type === 'Editor') { 
      var dialogObj = args.element.ej2_instances[0]; 
      dialogObj.buttons[1].buttonModel.isPrimary = false; 
      var statusElement = args.element.querySelector('#EventType'); 
      if (!statusElement.classList.contains('e-autocomplete')) { 
        var autoCompleteObject = new ej.dropdowns.AutoComplete({ 
          placeholder: 'Select a status', value: statusElement.value, 
          dataSource: ['New', 'Requested', 'Confirmed'] 
        statusElement.setAttribute('name', 'EventType'); 
      var startElement = args.element.querySelector('#StartTime'); 
      if (!startElement.classList.contains('e-datetimepicker')) { 
        new ej.calendars.DateTimePicker({ value: new Date(startElement.value) || new Date() }, startElement); 
      var endElement = args.element.querySelector('#EndTime'); 
      if (!endElement.classList.contains('e-datetimepicker')) { 
        new ej.calendars.DateTimePicker({ value: new Date(endElement.value) || new Date() }, endElement); 

Replied On April 12, 2019 01:36 PM UTC

Thank you very much! it works fine!

Karthigeyan Krishnamurthi [Syncfusion]
Replied On April 15, 2019 03:40 AM UTC

Most welcome 😊 


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