Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Delete confirmation based on selection #4908


User avatar
0
OriAssurant created

We want to show a ASPNetZero theme based popup to the user to get confirmation before deleting a particular record from the grid.

Could someone please help in pointing me to an example for the same?


1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    I couldn't understand what you want to achieve? If you want to do the same as in Users page (Are you sure? User dan.brown will be deleted.) you can check the code of Users page. It's nothing special.

    this.message.confirm(
                this.l('UserDeleteWarningMessage', user.userName),
                (isConfirmed) => {
                    if (isConfirmed) {
                        this._userServiceProxy.deleteUser(user.id)
                            .subscribe(() => {
                                this.reloadPage();
                                this.notify.success(this.l('SuccessfullyDeleted'));
                            });
                    }
                }
            );