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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

130336 May 8,2017 06:54 AM UTC May 9,2017 09:23 AM UTC ASP.NET MVC 1
loading
Tags: Grid
Dongil Shin
Asked On May 8, 2017 06:54 AM UTC

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,




















































































































































































































































































































});



})





Saravanan Arunachalam [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;