Removing the Toolbar

The toolbar is added to the C1ViewPort control by default. You can remove the toolbar from the control by setting the ToolBarVisible setting to False in Design view, in Source view, or in code. This topic assumes that you have created an AJAX-enabled ASP.NET project that contains a ScriptManager control (see Creating an AJAX-Enabled ASP.NET Project) and a C1ViewPort control.

In Design View

Complete the following steps:

1.   Right-click the C1ViewPort control to open its context menu and then select Properties from the list.

 

 

The Properties window opens with C1ViewPort's properties in focus.

2.   Locate the ToolBarVisible property and set it to False.

 

In Source View

To remove the toolbar, add ToolBarVisible="False" to the <cc2:C1ViewPort> tag so that the tag resembles the following:

 

<cc1:C1ViewPort ID="C1ViewPort1" runat="server" Text="Header" Height="507px" ToolBarVisible="False" Width="320px">

In Code

Complete the following steps:

1.   Import the following namespace into your project:

      Visual Basic

      C# 

2.   Add the following code to the Page_Load event:

      Visual Basic

      C# 

3.   Save the project and open it in a Studio for iPhone-compatible browser to execute the program.

 This Topic Illustrates the Following:

In this topic, you removed the toolbar from the C1ViewPort control. The result of this topic will resemble the following image:

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.