This topic contains 1 reply, has 2 voices, and was last updated by Hristo 8 years, 3 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › TreeGrid › Deleting a row in TreeGrid on click of a delete button of a modal window
Tagged: angular treegrid, angular2 treegrid, bootstrap treegrid, javascript treegrid, jquery treegrid, jqwidgets treegrid, jqxTreeGrid, modal window
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 8 years, 3 months ago.
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
}
Hello newuser,
Please, take a look at this example:
https://www.jseditor.io/?key=angular-treegrid-delete-row
Hope this helps.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
You must be logged in to reply to this topic.