ComponentOne EventsCalendar for ASP.NET Web Forms
Task-Based Help / Hiding the Navigation Bar
In This Topic
    Hiding the Navigation Bar
    In This Topic

    By default the C1EventsCalendar control displays a navigation bar at the bottom of the control. The navigation bar notes the selected date and lets the user navigate to previous or following dates or months at run time. You can disable the navigation bar by setting the NavigationBarVisible property to False.

    Hiding the Navigation Bar in Design View

    To hide the navigation bar at design time, complete the following steps:

    1. Right-click the C1EventsCalendar control and then click Show Smart Tag to view the C1EventsCalendar Tasks menu.
    2. In the C1EventsCalendar Tasks menu, clear the NavigationBar visible check box. Your C1EventsCalendar control will no longer show a navigation bar at run time.

    Hiding the Navigation Bar in Source View

    To hide the navigation bar in Source view, add NavigationBarVisible="False" to the <cc1:C1EventsCalendar> tag. Once you've set this property, your markup will resemble the following:

    To write code in Source View

    <cc1:C1EventsCalendar ID="C1EventsCalendar1" runat="server" NavigationBarVisible="False">

    Hiding the Navigation Bar in Code

    To hide the navigation bar programmatically, add the following code in the Page_Load event:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    C1EventsCalendar1.NavigationBarVisible = False
    

    To write code in C#

    C#
    Copy Code
    C1EventsCalendar1.NavigationBarVisible = false;