Hi Duncan,
From your query, we understood that you would like to prevent the saving of record 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 to the following code example and Help Document.
<div id="Grid"></div>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
keySettings: {
saveRequest: "",
},
. . . .
. .. .
});
});
</script> |
We have prepared a sample that can be referred from the following jsPlayground.
if we misunderstood your query, please get back to us with the following information to analyze and provide you solution as early as possible.
1) Code example of Grid
2) Exact replication procedure of issue
3) Whether the changes has been lost, after saving the Grid using enter key?
4) If possible, modify the attached sample and replicate the issue.
Regards,
Seeni Sakthi Kumar S.