ColumnCreating | RadGantt for ASP.NET AJAX Documentation
Edit this page

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

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy