aspnetbootstrap-devexpress-dot-web-dot-bootstrap-8a78986e.md
The ribbon control.
Namespace : DevExpress.Web.Bootstrap
Assembly : DevExpress.Web.Bootstrap.v25.2.dll
NuGet Package : DevExpress.Web.Bootstrap
[DXClientDocumentationProviderWeb("BootstrapRibbon")]
[ToolboxTabName("DX.25.2: Bootstrap Controls")]
public class BootstrapRibbon :
ASPxRibbon,
ISimpleRenderControl,
IControlDesigner
<ToolboxTabName("DX.25.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapRibbon")>
Public Class BootstrapRibbon
Inherits ASPxRibbon
Implements ISimpleRenderControl,
IControlDesigner
Add a Bootstrap Ribbon control to your web application to provide it with the ribbon functionality, i.e., a set of toolbars placed on several tabs.
The BootstrapRibbon control supports the following common features:
<dx:BootstrapRibbon runat="server" AutoGenerateAccessKeys="true">
<Tabs>
<dx:BootstrapRibbonTab Text="Home" Name="Home" AccessKey="H">
<Groups>
<dx:BootstrapRibbonGroup Text="Clipboard" ShowDialogBoxLauncher="true" Name="Clipboard"
DialogBoxLauncherAccessKey="FO" IconCssClass="fa fa-cut">
<Items>
<dx:BootstrapRibbonDropDownButtonItem Text="Paste" Name="paste" Size="Large" AccessKey="V" IconCssClass="fa fa-paste">
<Items>
<dx:BootstrapRibbonDropDownButtonItem Text="Plain text" IconCssClass="fa fa-paste">
</dx:BootstrapRibbonDropDownButtonItem>
</Items>
</dx:BootstrapRibbonDropDownButtonItem>
<dx:BootstrapRibbonButtonItem Text="Cut" Name="Cut" AccessKey="X" IconCssClass="fa fa-cut"></dx:BootstrapRibbonButtonItem>
<dx:BootstrapRibbonButtonItem Text="Copy" Name="Copy" AccessKey="C" IconCssClass="fa fa-copy"></dx:BootstrapRibbonButtonItem>
</Items>
</dx:BootstrapRibbonGroup>
</Groups>
</dx:BootstrapRibbonTab>
</Tabs>
</dx:BootstrapRibbon>
A BootstrapRibbon control is made up of a collection of tabs represented by BootstrapRibbonTab objects. The collection can be accessed using the Tabs property. A tab header displays a text specified by the Text property. In order to hide the tab headers, set the ShowTabs property to false.
The first tab in the header is the File tab. Note that it is not maintained in the Tabs. Clicking the tab raises the FileTabClicked event. You can hide the file tab by setting the ShowFileTab property to false.
A BootstrapRibbonTab owns a collection of groups that are represented by the BootstrapRibbonGroup objects. The collection can be accessed by the Groups property. A group label displays a text specified by the Text property. In order to hide the group labels, set the ShowGroupLabels property to false.
A BootstrapRibbonGroup owns a collection of items. The item collection can be accessed by the Items property. When an end-user executes an action on a ribbon item (e.g., clicks a button, changes an editor value), the CommandExecuted event is raised. To learn more about ribbon item types, see the Item Types topic.
The BootstrapRibbon control can be bound to a data source by its DataSourceID or DataSource property. You can specify data source fields to which the tabs, groups and items properties are mapped using the TabDataFields, GroupDataFields, and ItemDataFields properties respectively.
The BootstrapRibbon control provides you with a comprehensive client-side functionality implemented using JavaScript code:
To see the Bootstrap control and its features in action, refer to Online Demos - Ribbon.
Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxHierarchicalDataWebControl ASPxRibbon BootstrapRibbon
See Also