Edit this page

NavigationCommand

The RadGantt NavigationCommand event is fired when the RadGantt control executes a view change command.

NavigationCommand event handler receives two parameters:

  • sender is the RadGantt control instance.

  • e is an object of type NavigationCommandEventArgs. It returns selected RadGantt view.

Example

<telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" OnNavigationCommand="RadGantt1_NavigationCommand"></telerik:RadGantt>
protected void RadGantt1_NavigationCommand(object sender, Telerik.Web.UI.Gantt.NavigationCommandEventArgs e)
{
    if (e.Command == Telerik.Web.UI.Gantt.GanttNavigationCommand.SwitchToWeekView)
    {
        //...
    }
}
Protected Sub RadGantt1_NavigationCommand(sender As Object, e As Gantt.NavigationCommandEventArgs)
    If e.Command = Gantt.GanttNavigationCommand.SwitchToMonthView Then
        '...
    End If
End Sub

See Also