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 show or hide the columns in Gantt?

Platform: jQuery |
Control: ejGantt

In jQuery Gantt, we can hide or show the columns using hideColumn and showColumn public methods. We need to call these methods using the column’s header text as parameter. It is not possible to hide the tree/expander column by default. The following code snippet explains how to hide/show the column at an external button click event.

<button id="hidecolumn">Hide Task Name field</button>
<button id="showcolumn">Show Task Name field</button>
<div id="gantt" style="position: absolute; height:550px; width:1300px"></div>    
<script type="text/javascript">
$(function () {
$("#hidecolumn").click(function () {
var ganttObj = $("#gantt").data("ejGantt");
ganttObj.hideColumn("Task Name");
$("#showcolumn").click(function () {
ganttObj = $("#gantt").data("ejGantt");
ganttObj.showColumn("Task Name")


A sample to hide or show a column in the button click event is available in the following link.


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