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

Hiding the View Selection Bar

By default the C1Schedule control displays a view selection bar at the top of the control. The view selection bar enables the user to switch the ViewType at run time. You can disable the status bar by setting the ShowViewSelectionBar property to False.

In the Properties Window

To hide the view selection 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 ShowViewSelectionBar and select False.

Your C1Schedule control will now not show the view selection bar at run time.

In the Tasks Menu

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

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

2.   In the C1Schedule Tasks menu, clear the Show view selection bar check box.

Your C1Schedule control will now not show the view selection bar at run time.

In Source View

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

 

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

</cc1:C1Schedule>

Your C1Schedule control will now not show the view selection bar at run time.

In Code

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

      Visual Basic

C1Schedule1.ShowViewSelectionBar = False

      C#

C1Schedule1.ShowViewSelectionBar = false;

Your C1Schedule control will now not show the view selection bar at run time.

 What You've Accomplished

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


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