set custom name for grid options Button

I want to know is there any way to change name of Button in Grid ? for example "clear" instead delete row button or "change" instead edit Button.



1 Reply

PS Pavithra Subramaniyam Syncfusion Team September 5, 2022 02:53 PM UTC

Hi Mohsen,


Thanks for contacting Syncfusion support.


You can achieve your requirement by changing the locale texts of the Grid component (the default locale is “en-US”). Please refer to the below code example, documentation, and sample link for more information.


import { L10n } from '@syncfusion/ej2-base';

 

L10n.load({

  'en-US': {

    grid: {

      Edit'Change',

      Delete'Clear',

    },

  },

});

 


Documentation: https://ej2.syncfusion.com/react/documentation/grid/global-local/#localization


Sample               : https://stackblitz.com/edit/react-z2bbph?file=index.js


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


Regards,

Pavithra S


Loader.
Up arrow icon