aspxtreme

Toolbar Class

Microsoft.Web.UI.WebControls Namespace


.NET Framework version 2.0

Defines a container for one or more controls that derive from the base ToolbarItem class.

Toolbar Class Members

Collapse   Constructors

Visibility Constructor Parameters
public Toolbar ( )

Collapse   Fields

Visibility Name Type
public static const ButtonTagName String
public static const CheckButtonTagName String
public static const CheckGroupTagName String
public static const DropDownListTagName String
public static const LabelTagName String
public static const SeparatorTagName String
public static const TagNamespace String
public static const TextBoxTagName String
public static const ToolbarTagName String

Collapse   Properties

Visibility Name Value Type Accessibility
public AutoPostBack Boolean [ Get , Set ]
public DefaultStyle CssCollection [ Get , Set ]
public HoverStyle CssCollection [ Get , Set ]
public Items ToolbarItemCollection [ Get ]
public Orientation Orientation [ Get , Set ]
public SelectedStyle CssCollection [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected CreateControlCollection ( ) ControlCollection
protected LoadPostData ( String postDataKey , NameValueCollection postCollection ) Boolean
protected LoadViewState ( Object savedState ) Void
protected OnButtonClick ( Object sender , EventArgs e ) Void
protected OnCheckChange ( Object sender , EventArgs e ) Void
protected OnInit ( EventArgs e ) Void
protected OnPreRender ( EventArgs e ) Void
protected PostCheckChangeEvent ( ToolbarCheckButton btn ) Void
protected ProcessData ( String szData ) Boolean
protected RaisePostBackEvent ( String eventArgument ) Void
protected RaisePostDataChangedEvent ( ) Void
protected RenderContents ( HtmlTextWriter writer ) Void
protected RenderDesignerPath ( HtmlTextWriter writer ) Void
protected RenderDownLevelPath ( HtmlTextWriter writer ) Void
protected RenderUpLevelPath ( HtmlTextWriter writer ) Void
protected SaveViewState ( ) Object
protected TrackViewState ( ) Void

Collapse   Events

Multicast Name Type
multicast ButtonClick EventHandler
multicast CheckChange EventHandler

Remarks

The Toolbar class renders a menu-like control and is particularly useful for authoring user interface ( UI ) elements that invoke commands or navigate site content.

The Toolbar can be authored using a combination of one of more of the following controls that derive from the base ToolbarItem class.

Control Type Description
ToolbarButton Defines a button element.
ToolbarCheckButton Defines a check button element.
ToolbarCheckGroup Defines a group of check button elements.
ToolbarDropDownList Defines a drop-down list element.
ToolbarLabel Defines a non-interactive label.
ToolbarSeparator Defines a separator element.
ToolbarTextBox Defines a text box element.

The Toolbar control derives from the base WebControl class and as such inherits all properties of that class. In addition, the Toolbar has its own set of style and property attributes that apply to the different states of its child nodes. See Customizing the Toolbar Control User Interface.

The style and/or property attributes set at the Toolbar level can optionally be overwritten by explicitly setting specific style and/or property attributes for each child element, providing authors with greater flexibility when creating a personalized Toolbar control.

Example

The below examples show using a Toolbar class.

Toolbar with Default Settings
Run Sample | View Source
Simple Image-Based Toolbar
Run Sample | View Source
Simple Image-Based Vertical Toolbar
Run Sample | View Source
See Also

Toolbar WebControl   ToolbarButton Class   ToolbarCheckButton Class   ToolbarDropDownList Class   ToolbarLabel Class   ToolbarSeparator Class   ToolbarTextBox Class



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support aspxtreme