RadiantQ Forum

Product => jQuery Gantt Package => Topic started by: steve.vilotti on June 15, 2018, 11:36:35 AM

Title: Set width of vertical separator
Post by: steve.vilotti on June 15, 2018, 11:36:35 AM
Quick question. Can someone help me figure out how to set the default width of the separator between the grid and the chart? I would like the grid to be about 75% width, leaving the chart at about 25% width when the Gantt loads. I thought I saw this setting before, but cannot find it now. Any help would be appreciated.
Title: Re: Set width of vertical separator
Post by: Rajagopal on June 18, 2018, 12:03:47 PM
There is a "TablePanelWidth" gantt option to specify the value for splitter width. This is already illustrated in http://jqganttdemos.radiantq.com/Samples/RoundsTimesToDay.htm (http://jqganttdemos.radiantq.com/Samples/RoundsTimesToDay.htm) Sample

Code: [Select]
$gantt_container.GanttControl({
ProjectStartDate: anchorTime,
DataSource: self.jsonData,
GanttTableOptions: {
columns: columns
},

TablePanelWidth:"75%",

GanttChartTemplateApplied: function (sender, args)
{
var $GanttChart = args.element;
$GanttChart.GanttChart({ AnchorTime: anchorTime });
}
});


Thanks
Raja
Title: Re: Set width of vertical separator
Post by: steve.vilotti on June 20, 2018, 06:20:48 PM
Excellent.  Thank you, that was exactly what I was looking for.