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.
Unfortunately, activation email could not send to your email. Please try again.

How to change the tooltip for custom toolbar items?

In Grid, tooltip values for the default toolbar items can be changed using the ej.Grid.Locale and its locale key words like “Add”, “Edit”, “ExcelExport” as tabulated in the following Help Document.

https://help.syncfusion.com/js/grid/globalizationandlocalization

But custom toolbar items and its tooltip cannot be changed in the same way using ej.Grid.Locale.

 

Solution:

Tooltip for the custom toolbar item can be changed using the data-content attribute. Initially, this attribute has been set as its respective item name which is the default behavior. Later, it can be changed in the databound and actionCompelete events of the Grid.

 

HTML:

 

JavaScript:

 

Razor:

 

Controller:

 

WebForms:

 

 

.Net Core

 

 

Angular2:

 

TypeScript:

 

Template and CSS:

 

 

Define the databound and actionComplete events with the update for the data-content attribute for all the custom toolbar items.

 

TypeScript:

 

Figure 1. Grid custom toolbar with updated tooltip.

Article ID: Published Date: Last Revised Date: Platform: Control:
9266 09/11/2018 09/11/2018 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.