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

how to grid toolbar + (Add) tooltip change to 'Add a new xxx', pencil icon tooltip as 'Update xxx', delete icon tooltip as 'Delete xxx'

Hi, I'm new to MVC grid.
however, I'd like to change

ToolBarItems.Add 's tooltip (currently, it's 'Add')

but I'd like to change it to 'Add a New referral record' ...

How do I change it?

and additionally,

.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().RowPosition(RowPosition.Bottom).ShowDeleteConfirmDialog(); })

I also need to add tooltip with the icons for AllowDeleting() and AllowEditing() so on.

so, my overall question is how to add a custom tooltip for default toolbar items and edit settings.

Please give me a response soon.

Thank you.

Kind Regards,




















































































































































































































































































































});



})





1 Reply

SA Saravanan Arunachalam Syncfusion Team May 9, 2017 09:23 AM UTC

Hi Dongil, 
Thanks for contacting Syncfusion’s support. 
We have analyzed your requirement and achieved it by overriding default localized labels for the Grid’s toolbar items when loading the Grid control. Please refer to the below code example. 
@(Html.EJ().Grid<object>("Grid") 
            . . . 
        .ClientSideEvents(eve => eve.Load("onLoad")) 
 
    ) 
 
 
    <script type="text/javascript"> 
        function onLoad() { 
            ej.Grid.Locale.default.Add = "Add a New referral Record"; 
            ej.Grid.Locale.default.Edit = "Edit the selected Record"; 
            ej.Grid.Locale.default.Delete = "Delete a selected Record"; 
            ej.Grid.Locale.default.Save = "Update the Record"; 
        } 
    </script> 
 
Note: The above solution will work for the Grid with default culture, If you were render the Grid with any specific culture (such as es-ES, fr-FR), we suggest you to override that the specific culture’s localized labels for Grid’s toolbar items. 
Regards, 
Saravanan A. 


Loader.
Live Chat Icon For mobile
Up arrow icon