|
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
rowSelecting: function(args){
this.cancelEdit();
},
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true },
|
|
$(function () {
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
rowSelecting: function(args){
if(this.getContentTable().find(".e-editedrow").length){ // tochecke whether the edit form appears in the Grid
this.cancelEdit(); // to cancel the editing
args.cancel = true; // to prevent the row from being selected
}
}, |