Ej2 Grid: Full screen backdrop upon delete confirmation

Dear Support,


How to make backdrop become full screen for "Delete" confirmation. The full screen backdrop what I want is just the same with backdrop full screen when add or edit.

Below is current backdrop condition when delete confirmation:



Backdrop condition that I want to achieve for delete confirmation. (I want the backdrop is full screen like when we add or edit):



Thank you

Best regards,

ism


3 Replies 1 reply marked as answer

RS Rajapandiyan Settu Syncfusion Team September 16, 2021 12:01 PM UTC

Hi ISMAIL,  
  
Greetings from Syncfusion support. 

Query: How to make backdrop become full screen for "Delete" confirmation. The full screen backdrop what I want is just the same with backdrop full screen when add or edit. 

We have validated your requirement at our end. You can achieve this by using following code example in the toolbarClick event of Grid. 


 
[index.js] 

 
var grid = new ej.grids.Grid({ 
  dataSource: window.orderData, 
  editSettings: { 
    allowEditing: true, 
    allowAdding: true, 
    allowDeleting: true, 
    mode: 'Dialog', 
    showDeleteConfirmDialog: true 
  }, 
  toolbar: ['Add''Edit''Delete''Update''Cancel'], 
  toolbarClick: function(args) { 
    if (args.item.text == 'Delete') { 
     // change the target element of Confirmation Dialog 
      grid.editModule.alertDObj.target = document.body; 
      grid.editModule.dialogObj.target = document.body; 
    } 
  }, 
  ----  
}); 
grid.appendTo('#Grid'); 
 


We have prepared a sample for your reference. You can get it from the below link. 


Please get back to us if you need further assistance with this. 

Regards,  
Rajapandiyan S 


Marked as answer

IH ISMAIL HAMZAH replied to Rajapandiyan Settu September 16, 2021 11:55 PM UTC

Hi Rajapandiyan,


Your provided solution work like a charm.


Thank you for your help.




RS Rajapandiyan Settu Syncfusion Team September 17, 2021 05:55 AM UTC

Hi ISMAIL,  

We are glad that you have achieved your requirement with the provided solution. 
  
Please get back to us if you need further assistance with this. 

Regards,  
Rajapandiyan S 


Loader.
Up arrow icon