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

ejGrid - Prevent "Enter" Key from Inline Edit Form Submission

Thread ID:





130573 May 18,2017 03:24 PM UTC May 19,2017 11:16 AM UTC JavaScript 1
Tags: ejGrid
Matt Abercrombie
Asked On May 18, 2017 03:24 PM UTC

I have an inline edit form and need to be able to prevent form submission when the user presses the ENTER key. It appears to be calling "editFormValidate".

Mani Sankar Durai [Syncfusion]
Replied On May 19, 2017 11:16 AM UTC

Hi Matt, 

Thanks for contacting Syncfusion support.  

We have analyzed your query and we can achieve your requirement using keySettings property in grid. We have also prepared a sample based on query that can be available from the below link. 
In this sample using keySettings property we can used to prevent the record save while pressing enter key.  By overriding the value of saveRequest a sub property of keySettings, you can prevent the saving Grid records while pressing enter key. The default value of the saveRequest is “13” keycode for an enter key 
Refer the code example. 
$(function () { 
                var element = $("#Grid"); 
                    dataSource: window.gridData, 
                    allowPaging: true, 
                    keySettings: { 
                        saveRequest: "",     //default key code is 13 for enter key 
                    columns: [ 

Refer the documentation link. 

Please let us know if you need further assistance. 

Manisankar Durai 


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