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.
Syncfusion Feedback

How to change the tooltip for custom toolbar items?

Platform: Angular |
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.

2X faster development

The ultimate Angular UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
test user2
May 24, 2021

Testing - Please ignore.

Reply

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