BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<script type="text/javascript"> angular.module('Ctrl', ['ejangular']) .controller('GridCtrl', function ($scope) { . . . . $scope.actionBegin = function (args) { if (args.requestType == "beginEdit" || args.requestType == "add") { promise = (this.model.dataSource()).executeQuery(new ej.Query()); promise.done(function(e){ data = e.result;// get the dataSOurce of the grid }); } if (args.requestType == "save") { for (var i = 0; i < data.length; i++) //check if the entered data is already present in the grid if (args.data.CustomerID == data[i].CustomerID || args.data.EmployeeID == data[i].EmployeeID || args.data.ShipCountry == data[i].ShipCountry) { args.cancel = true; alert("Please enter only unique values"); $("#" + this._id + "_dialogEdit").ejDialog("close"); break; } } } }); |