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

How to add custom icon To Toolbar

How to add custom icon to toolbar

In Gantt, we can customize the toolbar with custom icons and can bind click event to the icon using the toolbarSettings.customToolbarItems property. We can define the required custom toolbar items in this property and handle the click events using toolbarClick client side event.

There are two ways to define custom toolbar items in Gantt,

 

By using CSS text:

We need to define the required custom toolbar item in the customToolbarItems.text property. And by using this text value, we can bind the event for the custom icon in toolbarClick event. Find the below code example for details.

 

By using template:

We can also customize the toolbar items by providing the JsRender template to the templateID property. Find the below code example for details.

 

You can find a sample to show custom toolbar items in Gantt below,

Sample

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7878 07/28/2017 07/28/2017 ASP.NET Web Forms Gantt
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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