BootstrapGridView.Toolbars Property
Get the collection of the Grid View control’s toolbars.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
[DefaultValue(null)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public BootstrapGridViewToolbarCollection Toolbars { get; }
Property Value
Type | Default | Description |
---|---|---|
BootstrapGridViewToolbarCollection | null | A BootstrapGridViewToolbarCollection object which is the collection of toolbars within the grid. |
Remarks
The Bootstrap Grid View control stores its toolbars (represented by BootstrapGridViewToolbar class instances) in the Toolbars collection property. You can add or remove toolbars, change their availability and position, and populate them with toolbar items (BootstrapGridViewToolbarItem class instances) using the BootstrapGridViewToolbar.Items property. Toolbar items can trigger standard grid commands (such as data item editing, deletion, creation, etc.) and if required, any custom actions (GridViewToolbarItem.Command).
Use the following properties to specify the toolbar settings:
- GridToolbar.Position. Specifies the toolbar position.
- GridToolbar.Visible. Controls the toolbar visibility.
- GridToolbar.Enabled. Specifies whether the toolbar is enabled.
- BootstrapGridViewToolbar.CssClass - Specifies the name of a CSS class applied to the toolbar element.