ColumnCreating
The RadGantt ColumnCreating is fired when a TreeList column is about to be created.
ColumnCreating event handler receives two parameters:
sender is the RadGantt control instance.
e is an object of type ColumnCreatingEventArgs. It gives you access to the TreeList column.
Example
<telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" OnColumnCreating="RadGantt1_ColumnCreating"></telerik:RadGantt>
protected void RadGantt1_ColumnCreating(object sender, Telerik.Web.UI.Gantt.ColumnCreatingEventArgs e)
{
if (e.Column.HeaderText == "ID") {
e.Column.AllowSorting = false;
}
}
Protected Sub RadGantt1_ColumnCreating(sender As Object, e As Gantt.ColumnCreatingEventArgs)
For Each item As var In e.Tasks
item.Title = "Modified Title"
Next
End Sub