Html Grid

Bind to the cellendedit event by type: jqxGrid. Author: http://jqwidgets.com

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="https://jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/generatedata.js"></script>
Double click on a cell to begin edit. Change its value and click on some other cell or click "Enter".
<div id='jqxWidget'>
    <div id="jqxgrid"></div>
</div>
<div id="log"></div>

<div id="validationMsg">Sample notification</div>

CSS

.jqx-notification-container {
   z-index: 99999;
}

JavaScript

var data = generatedata(500);
 var source = {
     localdata: data,
     datafields: [{
         name: 'firstname',
         type: 'string'
     }, {
         name: 'lastname',
         type: 'string'
     }, {
         name: 'productname',
         type: 'string'
     }, {
         name: 'date',
         type: 'date'
     }, {
         name: 'quantity',
         type: 'number'
     }, {
         name: 'price',
         type: 'number'
     }],
     datatype: "array"
 };

 var adapter = new $.jqx.dataAdapter(source);

var opened = false;
 
 $("#jqxgrid").jqxGrid({
     width: 500,
     theme: 'energyblue',
     source: adapter,
     sortable: true,
     editable: true,
     selectionmode: 'singlecell',
     columns: [{
         text: 'First Name',
         datafield: 'firstname',
         columngroup: 'Name',
         width: 90
     }, {
         text: 'Last Name',
         columngroup: 'Name',
         datafield: 'lastname',
         width: 90
     }, {
         text: 'Product',
         datafield: 'productname',
         width: 170,
          cellendedit: function (row, datafield, columntype, oldvalue, newvalue) {
          	if (newvalue == "") {
            		if (!opened) {
                		$('#validationMsg').jqxNotification("open");
                    $('#jqxgrid').jqxGrid('selectcell', row, datafield);
                    opened = true;
                }
                 return false;
             }
            else {
                 return true;
            }
          }
     }, {
         text: 'Order Date',
         datafield: 'date',
         width: 160,
         cellsformat: 'dd-MMMM-yyyy'
     }, {
         text: 'Quantity',
         datafield: 'quantity',
         width: 80,
         cellsalign: 'right'
     }, {
         text: 'Unit Price',
         datafield: 'price',
         cellsalign: 'right',
         cellsformat: 'c2'
     }]
 });
 
   $("#validationMsg").jqxNotification({
      width: "250px",
      position: "top-left",
      opacity:...