C1ToolBar control is made up of a tree of toolbar items represented by C1ToolBarItemBase and C1ToolBarItem objects. The C1ToolBarItemBase object represents all toolbar item types: link items, separator items, and group items. The C1ToolBarItem object represents link type items and provides the following three properties specific to link items: NavigateUrl property, Target property, and Text property.
Use the NavigateUrl property to link a toolbar item to a URL. You can assign the URL to the NavigateUrl property in one of the following ways:
• If the URL is within the same ASP.NET application use the “~” before the URL like the following:
NavigateUrl = “~/Default2.aspx”
• If the URL is an external URL, then use the protocol, for example:
NavigateUrl = “http://www.componentone.com”
The Target property takes precedence over the NavigateUrl property if both properties are specified; the content of the specified URL page will be displayed in the specified window or frame when the user clicks on the item. If the user only specifies the URL for the NavigateUrl property then when the user clicks on the item the current page will transfer to the specified URL page.
ToolBar items at the top level hierarchy (level 0) are called toolbar items. A toolbar item that has a parent toolbar item is called a child toolbar item. All toolbar items and child toolbar items are stored in the Items collection. C1ToolBar items can be a link item, button item, list item, group item, or separator item. The default toolbar item is a button item.
|