Hi Fabio,
Thanks for your interest in Syncfusion products.
Your requirement to customize the Delete confirmation message can be achieved by setting the customized text to confirmDeleteMessage in grid object. Please refer the below code snippets.
[Script]
$(document).ready(function () {
var gridId = '<%=this.GridGroupingControl1.ClientID%>';
var gridTable;
gridTable = GetEGridTable($get(gridId));
var gridObj = gridTable.GetGridObj();
gridObj.confirmDeleteMessage = " Delete current record?";
});
For your convenience, we have created sample and the same can be downloaded from the following link.
http://www.syncfusion.com/downloads/Support/DirectTrac/91188/ButtonBar Delete-2064488978.zip
Please let me know if you have any other questions or concerns.
Regards,
Sridhar.N
Hi Fabio,
Thanks for your update.
We suspect that you are using UpdatePanel and so we suggest you to bind the DeleteConfirmationMessage on EndRequest. Please refer the below code snippet.
[Script]
$(document).ready(function () {
setConfirmationMessage();
});
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest);
function EndRequest(sender, args) {
setConfirmationMessage();
}
function setConfirmationMessage() {
var gridId = '<%=this.GridGroupingControl1.ClientID%>';
var gridTable;
gridTable = GetEGridTable($get(gridId));
var gridObj = gridTable.GetGridObj();
gridObj.confirmDeleteMessage = " Delete current record?";
}
For your convenience, we have created sample and the same can be downloaded from the following link.
http://www.syncfusion.com/downloads/Support/DirectTrac/95077/ButtonBar Delete1638186371.zip
Please let me know if you have any other questions or concerns.
Regards,
Sridhar.N