The display type defines the way the buttons are shown in the toolbar:
- Image only - displays only the icon image of the button.
- Image and text - displays the icon image and the command name of the button (the command name is set in the CommandName property).
- Text only - displays only the command name of the button (the command name is set in the CommandName property).
 |
The ButtonText property, when present, overrides the value of the CommandName property. See Example 3 below for details. |
The display type is set in the DisplayType property. The default value of this property is ImageOnly.
Examples
1. Image only

| |
Copy Code |
|
<rad:radtoolbar runat="server" id="Radtoolbar1" skin="Office2003" UseFadeEffect="True"> <items> <rad:radtoolbarbutton AccessKey="n" Tooltip="New (Alt+N)" CommandName="New" /> <rad:radtoolbarbutton AccessKey="o" Tooltip="Open (Alt+O)" CommandName="Open" /> <rad:radtoolbarbutton AccessKey="s" Tooltip="Save (Alt+S)" CommandName="Save" /> </items> </rad:radtoolbar> |
2. Image and text

| |
Copy Code |
|
<rad:radtoolbar runat="server" id="Radtoolbar2" skin="Office2003" UseFadeEffect="True"> <items> <rad:radtoolbarbutton DisplayType="TextImage" AccessKey="n" Tooltip="New (Alt+N)" CommandName="New" /> <rad:radtoolbarbutton DisplayType="TextImage" AccessKey="o" Tooltip="Open (Alt+O)" CommandName="Open" /> <rad:radtoolbarbutton DisplayType="TextImage" AccessKey="s" Tooltip="Save (Alt+S)" CommandName="Save" /> </items> </rad:radtoolbar> |
3. Text only
 |
Note that the text of the third button, "SAVE", is defined by the value of the ButtonText property. When present, this property overrides the command name. To illustrate this, we have made the two values slightly different:
- ButtonText="SAVE" (all caps)
- CommandName="Save" (title caps)
The picture below clearly shows which value has taken effect. |
