We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Change delete confirmation message text for SyncFusion grid.

Hi,

I was looking if there is anyway to change delete confirmation message text for SyncFusion grid.

I clicked on Demos for batch editing of grid and clicked on Edit in StackBlitz. Set showDeleteConfirmDialog:true in app.component.ts. I get "Are you sure you want to Delete Record?" delete confirmation message as expected but is there anyway to change the text of the delete confirmation message.

Below is the link of Demo for batch-editing of grid that I was trying to change.

https://ej2.syncfusion.com/angular/demos/#/material/grid/batch-editing


Thanks,
Pavani


3 Replies

TS Thavasianand Sankaranarayanan Syncfusion Team June 26, 2019 01:58 PM UTC

Hi Pavani, 

Greetings from Syncfusion support. 

We can bale to change the text for delete confirmation dialog in Grid. Please refer the below code example. 

[app.component.html] 

<ejs-grid #batchgrid id='Batchgrid' [locale]='en-US' [dataSource]='data' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar'> 
            <e-columns> 

                    ------------------------ 

            </e-columns> 
        </ejs-grid> 

------------------------------------------------------------------------------------------------------------ 
[app.component.ts] 

setCulture('en-US'); 

L10n.load({ 
    'en-US': { 
        grid: { 
           ConfirmDelete:"Are you ok to delete the record ?" 
       
   
}); 

  
We have prepared a simple sample in the following stackblitz link. 


Regards, 
Thavasianand S. 



PK Pavani Kothapalli June 26, 2019 03:06 PM UTC

This is exactly what I was looking for. Thank you.



TS Thavasianand Sankaranarayanan Syncfusion Team June 27, 2019 06:12 AM UTC

Hi Pavani, 
 
Thanks for your update. 
 
We are happy that the problem has been resolved at your end. 
 
Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon