Confirm dialog

On the grid we have these properties:
image

Which produces this confirmation dialog when deleting a record:
image

Is there a way to use that modal dialog in other contexts in the app (outside the grid delete event)?