Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need to dispaly " are you sure you want to delete" pop up before deleting.
$scope.model.cols.push(
          { 'template': '<a href="/Test/Edit/#= data.ID #"><span class="glyphicon glyphicon-edit" title="Edit"></span></a>', editable: false, width: 20 },
          { 'template': '<a><span class="glyphicon glyphicon-remove-circle" title="Delete" style="padding-left:5px;cursor: pointer;" onclick="accScope.DeleteProject(#:ID#)"></span></a>', width: 25 });
  }



$scope.DeleteProject = function (ID) {
     $http.get('/Test/UpdateProject/' + ID)
         .then(function (result) {
             $scope.ProjectDetails.dataSource.read();
         }, function (error) {
             $scope.alerts.push({ type: 'danger', msg: 'An error occurred while saving your information. Please try again.' });
         });
 }


What I have tried:

Ngconfirm click did not work and tried by keeping Ng-confirm click before onclick method
Posted
Comments
Graeme_Grant 21-Jan-19 16:18pm    
Have you tried the Telerik Forums[^]?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900