ComponentOne ComboBox for ASP.NET: C1ComboBox Design-Time Support > C1ComboBox Smart Tag

C1ComboBox Smart Tag

The C1ComboBox control includes a smart tag () in Visual Studio. A smart tag represents a short-cut tasks menu that provides the most commonly used properties in C1ComboBox.

The C1ComboBox control provides quick and easy access to common properties through its smart tag.

To access the C1ComboBox Tasks menu, click the smart tag in the upper-right corner of the C1ComboBox control.

 

 

The C1ComboBox Tasks menu operates as follows:

      Choose Data Source

Clicking the drop-down arrow next to the Choose Data Source item opens a drop-down list where you can choose an existing data source or select a new data source to bind to and populate your C1ComboBox.

      Configure Data Source (only visible if you specify a data source)

Clicking the Configure Data Source link allows you to determine which items from your data source will be used to populate C1ComboBox.

      DataTextField (only visible if you specify a data source)

Clicking the drop-down arrow next to DataTextField opens a drop-down list where you can choose the field in the data source used to load the text values, or items that appear in the C1ComboBox drop-down list.

      DataValueField (only visible if you specify a data source)

Clicking the drop-down arrow next to DataValueField opens a drop-down list where you can choose the field in the data source used to load the values for the items that appear in the C1ComboBox drop-down list.

      Edit Items (only visible if you do not specify a data source)

Clicking the Edit Items link opens the C1ComboBox Editor where you can add and remove C1ComboBoxItems and change C1ComboItem properties, such as appearance, behaviors and so on.

      Edit Columns

Clicking the Edit Columns link opens the Columns Designer dialog box where you can add and remove columns and set their properties.

      VisualStylePath

The VisualStylePath property specifies the location of the visual styles used for the control. The default value for VisualStylePath property is ~/C1WebControls/VisualStyles.If you create a custom style, add it to this location ~/VisualStyles/StyleName/C1ComboBox/styles.css, set the VisualStylePath property to ~/VisualStyles, and set the VisualStyle property to StyleName (assuming that StyleName is the name used to define the style in the style.css file). Uncheck the UseEmbeddedVisualStyles property.

      UseEmbeddedVisualStyles

This checkbox is checked by default so that the visual styles embedded in C1.Web.UI.Controls.2.dll, such as ArcticFox and Vista, can be used. If you want to use your own custom styles, uncheck this checkbox and specify the location of your visual styles using the VisualStylePath property.

      VisualStyle

Clicking the VisualStyle drop-down arrow allows you to select from various built-in visual styles. See Using Built-in Visual Styles for more information.

      About C1ComboBox

Displays the About ComponentOne ComboBox dialog box, which is helpful in finding the version number of the product and online resources such as how to purchase a license, how to contact ComponentOne, or view ComponentOne product forums.

      Edit Templates

Clicking the Edit Templates item switches the C1ComboBox control to Template Editing Mode:

 

 

In Template Editing Mode the C1ComboBox menu appears with different options:

      Display

Selecting the Display drop-down arrow opens a list of customizable templates, including the Header and Footer. Select a template from this list to edit it.

      End Template Editing

Clicking the End Template Editing item will end Template Editing Mode and return you to the main C1ComboBox Tasks menu.


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