Table functions > Confirm delete popup

Crud Elite

Getting Started

Action Column

Hide action column

Add buttons to action column

Table functions

Default sorting

“Show 10 records” drop-down

The “Search…” placeholder

Exported file

Columns ordering

Custom content in a column

Confirm delete popup

Common issues

Edit auratheme.table.js

Other

Clone for another table

How it works

Read data for the table

How to change the title and description in deletion confirmation pop up modal?


We’re referring to this:

image.png

You can follow the steps below to change the title and description.

Open /Views/Home/_Table.cshtml, find the part of code as shown in image below. Change the null, null into your title and description.

image.png

Original code is:

<a class="fw-bolder fs-4 lh-1 text-decoration-none" href="javascript:void(0)"
onclick="event.stopPropagation();openConfirmationModal('@GeneralHelper.EscapeQuotes(item.Name)',
   '@Url.Action("delete", new { id= item.Id})', null, null)">
   <i class="bi bi-trash3"></i>
</a>

You might change to:

<a class="fw-bolder fs-4 lh-1 text-decoration-none" href="javascript:void(0)" onclick="event.stopPropagation();openConfirmationModal('@GeneralHelper.EscapeQuotes(item.Name)',
   '@Url.Action("delete", new { id= item.Id})', 'Are you sure to delete the client?', 'Please make sure the client can be deleted.')">
   <i class="bi bi-trash3"></i>
</a>