ComponentOne Scheduler for ASP.NET: Scheduler for ASP.NET AJAX Task-Based Help > Customizing C1Schedule's Appearance > Hiding the Navigation Bar

Hiding the Navigation Bar

By default the C1Schedule control displays a navigation bar at the top of the control. The navigation bar notes the selected date(s) and lets the user navigate to the previous or next date at run time. You can disable the navigation bar by setting the ShowNavigationBar property to False.

In the Properties Window

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

1.   Click once on the C1Schedule control to select it and navigate to the Properties window.

2.   Click the drop-down arrow next to ShowNavigationBar and select False.

Your C1Schedule control will now not show a navigation bar at run time.

In the Tasks Menu

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

3.   Right-click the C1Schedule control and then click Show Smart Tag to view the C1Schedule Tasks menu.

4.   In the C1Schedule Tasks menu, clear the Show navigation bar check box. 

Your C1Schedule control will now not show a navigation bar at run time.

In Source View

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

 

<cc1:C1Schedule ID="C1Schedule1" runat="server" ShowNavigationBar="False">

</cc1:C1Schedule>

In Code

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

      Visual Basic

C1Schedule1.ShowNavigationBar = False

      C#

C1Schedule1.ShowNavigationBar = false;

 What You've Accomplished

You have learned how to set the ShowNavigationBar property using the Properties window, Tasks menu, in Source view, and C# or Visual Basic code. The navigation bar is now disabled in your C1Schedule control, and if you run your application the navigation bar will not be visible at run time.


Send comments about this topic to ComponentOne.
Copyright ComponentOne LLC. All rights reserved.