We can able to customize the delete confirmation dialog by using toolbarClick client-side event, which will be triggered on clicking any toolbar item. The below code snippet explains customizing the text content of delete confirmation dialog. <script type="text/javascript"> $(function () { $("#TreeGridContainer").ejTreeGrid({ //... toolbarClick: function (args) { if (args.itemName == "Delete") { // “model.selectedItem” contains the selected record details. $("#TreeGridContainer_ConfirmDialog").find(".e-content").text("Are you sure want to delete the TaskId = " + args.model.selectedItem.taskID); } }, toolbarSettings: { showToolbar: true, toolbarItems: [ ej.TreeGrid.ToolbarItems.Delete, ] }, }); }); </script> Sample Please refer the sample link for more information. |
This page will automatically be redirected to the sign-in page in 10 seconds.