New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

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

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;
    }
}

See Also

In this article
ExampleSee Also
Not finding the help you need?
Contact Support