Dirty read set flag for update record angular js

$scope.Update = function () { var index = 0; var arrPermissions = []; $scope.dataResult.forEach(function (row) { if (row.IsDirty == true) { arrPermissions.push(row); } }); SpinStart(); $http.post(“Security/Update”, { ViewModels: arrPermissions }) .success(function (data) { alert(” updated successfully.”); }) .error(function () { SpinStop(); alert(“Not valid.”); }); } // key press event $scope.Changed = function (id) { var… Read More Dirty read set flag for update record angular js

chosen js dropdown last select issue

Error on last item selection When I select last item on second time. It is giving an error “Uncaught TypeError: Cannot set property ‘selected’ of undefined” on every chosen. solution I had the same problem with this behavior. I used the following as workaround: <select chosen data-placeholder=”Placeholder” ng-model=”myValue” ng-options=”item.name for item in itemList” > <option… Read More chosen js dropdown last select issue