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

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

Give article feedback

Tell us how we can improve this article

close
Dummy