New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
ColumnCreating
Updated over 6 months ago
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
ASP.NET
<telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" OnColumnCreating="RadGantt1_ColumnCreating"></telerik:RadGantt>C#
protected void RadGantt1_ColumnCreating(object sender, Telerik.Web.UI.Gantt.ColumnCreatingEventArgs e)
{
    if (e.Column.HeaderText == "ID") {
        e.Column.AllowSorting = false;
    }
}