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

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to change the tooltip for custom toolbar items?

Platform: jQuery |
Control: ejGrid |
Published Date: September 11, 2018 |
Last Revised Date: September 11, 2018

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.

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile