ComponentOne Extender Controls for ASP.NET Web Forms
Wijmo Control Toolkit Extender Controls / C1EventsCalendarExtender / Hiding the Events Calendar Navigation Bar
In This Topic
    Hiding the Events Calendar Navigation Bar
    In This Topic

    By default the C1EventsCalendarExtender 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 C1EventsCalendarExtender.NavigationBarVisible property to False.

    Hiding the Navigation Bar in Design View

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

    1. Select View | Properties Window in the Visual Studio menu.
    2. Click the drop-down list at the top of the Properties window and select Panel1_C1EventsCalendarExtender.
    3. Click the drop-down arrow next to the C1EventsCalendarExtender.NavigationBarVisible property and select False.

    Hiding the Navigation Bar in Source View

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

    <cc1:C1EventsCalendarExtender ID="Panel1_C1EventsCalendarExtender"

            runat="server" Colors="red,darkorchid,green,blue,cornflowerblue,yellow,bronze"

            SelectedDate="2012-02-09" TargetControlID="Panel1"

            VisibleCalendars="Default,Home,Work" NavigationBarVisible="False">

        </cc1:C1EventsCalendarExtender>

    Hiding the Navigation Bar in Code

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

    Visual Basic
    Copy Code

    Panel1_C1EventsCalendarExtender.NavigationBarVisible = False

     

    C#
    Copy Code
    Panel1_C1EventsCalendarExtender.NavigationBarVisible = false;