$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
columns: [
. . .
]
});
//customize the default locale property
ej.Grid.Locale["en-US"] = {
DeleteOperationAlert: "Here you can customize the text for delete button",
EditOperationAlert: "Here you can customize the text for edit button",
}; |
Hi Luis,
Thanks for contacting Syncfusion support.
We have achieved your requirement by customizing the locale property like as follows,
Code example:
$("#Grid").ejGrid({// the datasource "window.gridData" is referred from jsondata.min.jsdataSource: window.gridData,columns: [. . .]});//customize the default locale propertyej.Grid.Locale["en-US"] = {DeleteOperationAlert: "Here you can customize the text for delete button",EditOperationAlert: "Here you can customize the text for edit button",};
Note: in above code example, we have used the default locale. So, you can change the locale value for your corresponding locale.We have also prepared a sample based on your requirement which can be referred from following link,
Please refer to the following Help documentation for change the other Grid locale text,
Regards,Venkatesh Ayothiraman.
$("#Grid").ejGrid({
// the datasource "window.gridData" is referred from jsondata.min.js
dataSource: window.gridData,
allowPaging: true,
. . .
toolbarClick: function (args) {
if ((args.itemName == "Edit" || args.itemName == "Delete") & this.getSelectedRecords().length == 0) {
alert = function () { }; //prevent the default alert popup
//here you can call your own customize alert method
}
},
columns: [
. . .
]
});
|