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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the column widths on Gantt chart?

Thread ID:

Created:

Updated:

Platform:

Replies:

130218 Apr 28,2017 11:01 AM UTC May 1,2017 07:32 AM UTC ASP.NET Core 1
loading
Tags: Gantt
Mark Chidlow
Asked On April 28, 2017 11:01 AM UTC

I'd like to set the widths of the Gantt chart columns - is there a way to do that?

Jayakumar Duraisamy [Syncfusion]
Replied On May 1, 2017 07:32 AM UTC

Hi Mark, 
 
Please find the below response. 
 
We can set the Gantt columns width at the load time using “load” client side event. 
Please refer the following code snippet, 
<ej-gantt id="ganttSample" datasource="ViewBag.datasource" 
//… 
load:"loadEvent"> 
</ej-gantt> 
<script type="text/javascript"> 
function loadEvent(args) { 
       var columns = this.getColumns(); 
           columns[0].width = 100; 
           columns[1].width = 250; 
           columns[2].width = 250; 
} 
 
Please let us know if you need any other assistance. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;