I have a treegrid in my application which has links in every row. On click of the link a jqxmodal pops up. The jqxModal contains a delete button. On click of the delete button the row in the treegrid should get deleted. please help!! Below is the code:
$scope.delete = function () {
var uid = sessionStorage.getItem(‘userID’)
var uname =sessionStorage.getItem(“uname”)
var config = {
headers: {
“userId”: uid,
“userName”: uname
}
};
$http.get(APP_URL + ‘deleteAssessmentSpecificDetails/’ + thisKey, config)
.then(function (resp) {
console.log(“deleted “)
angular.element(document.getElementById(“myBody”)).scope().assessTable(); /////// assessTable() creates the treegrid
});
$uibModalInstance.dismiss(‘cancel’) ///////////// for closing the modal window
}