By default the C1EventsCalendarExtender control displays a header bar at the top of the control. The Header bar contains tabs for the calendar views, allowing you to change the current view at run time. You can disable the Header bar by setting the C1EventsCalendarExtender.HeaderBarVisible property to False.
Hiding the Header Bar in Design View
To hide the Header bar at design time, complete the following steps:
Hiding the Header Bar in Source View
To hide the Header bar in Source view, add HeaderBarVisible="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" HeaderBarVisible="False">
</cc1:C1EventsCalendarExtender>
Hiding the Header Bar in Code
To hide the Header bar programmatically, add the following code into the Page_Load event:
Visual Basic |
Copy Code
|
---|---|
Panel1_C1EventsCalendarExtender.HeaderBarVisible = False |
C# |
Copy Code
|
---|---|
Panel1_C1EventsCalendarExtender.HeaderBarVisible = false; |