TOOLBARDROPDOWNLIST Element | ToolbarDropDownList Class

Adds a ToolbarDropDownList element to an ASP.NET Web Form.

Syntax

ASP <tagPrefix:TOOLBARDROPDOWNLIST ... >

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.

Remarks

To create the list of options for the ToolbarDropDownList, use the ListItem control.

This element is a block element.

This element requires a closing tag.

Members Table

The following table lists the members exposed by the ToolbarDropDownList object.

Attribute Property Description
AccessKey Sets or retrieves the keyboard shortcut key (AccessKey) for setting focus to the item.
AUTOPOSTBACK AutoPostBack Sets or retrieves a value that indicates whether the control posts back to the server each time a user interacts with the control.
BackColor Sets or retrieves a value that indicates the background color of the Web control.
ControlStyle Retrieves a value that indicates the style of the control.
CssClass Sets or retrieves a value that indicates the CssClass.
DataMember Sets or retrieves the specific table in the DataSource to bind the ToolbarDropDownList control.
DataSource Sets or retrieves the data source that populates the items in the ToolbarDropDownList control.
DataTextField Sets or retrieves the data source that provides the text content of list items.
DataTextFormatString Sets or retrieves a value that indicates the formatting System.String used to control how the list control is displayed.
DataValueField Sets or retrieves the data source that provides the value of each ToolbarDropDownList item.
DEFAULTSTYLE DefaultStyle Sets or retrieves a value that indicates the default style for the element.
Enabled Sets or retrieves a value that indicates whether the item is enabled.
Font Retrieves the Font information.
ForeColor Sets or retrieves the foreground color of the Web control.
ID ID Sets or retrieves a value that indicates the string that identifies the object.
Index Retrieves the index of the toolbar item within the parent.
Items Retrieves the collection of ToolbarItem objects that are in the Toolbar.
Parent Retrieves the parent object of a node.
ParentToolbar The Toolbar control that contains this item.
SelectedIndex Retrieves the lowest ordinal index of the currently selected items in the list.
SelectedItem Retrieves the selected item with the lowest index in the ToolbarDropDownList control.
Style Sets or retrieves a collection of text attributes that render as a style attribute on the outer tag.
TabIndex Sets or retrieves a value that indicates the tab index of the item.
ToolTip Sets or retrieves the ToolTip that displays when the cursor hovers over the control.
Width Sets or retrieves a value that indicates the width of the WebControls.
Event Description
onselectedindexchanged Fires when SelectedIndex changes for ToolbarDropDownList.
Method Description
ClearSelection Clears the selection.
Clone Creates a new object that is a copy of the current instance.
DataBind Binds the data to the ToolbarDropDownList control and all of its child controls.
ToString Retrieves a System.String that indicates the current object.

Class Information

Namespace Microsoft.Web.UI.WebControls

Applies To

ListItem, TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl