Back to Devexpress

GridViewToolbarItem Class

aspnet-devexpress-dot-web-4e7accc8.md

latest3.3 KB
Original Source

GridViewToolbarItem Class

Implements the Grid View’s toolbar item functionality.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class GridViewToolbarItem :
    GridToolbarItem
vb
Public Class GridViewToolbarItem
    Inherits GridToolbarItem

The following members return GridViewToolbarItem objects:

Remarks

Populate a grid toolbar with a GridViewToolbarItem object and specify its Command property to add the corresponding item to the toolbar.

Run Demo: Grid - ToolbarRun Demo: Grid - Exporting to Different Formats

aspx
<dx:ASPxGridView ID="Grid" runat="server" KeyFieldName="ProductID" DataSourceID="ProductsDataSource">
    <SettingsExport EnableClientSideExportAPI="true"/>
    <Toolbars>
        <dx:GridViewToolbar>
            <Items>
                <dx:GridViewToolbarItem Command="ExportToPdf" />
                <dx:GridViewToolbarItem Command="ExportToDocx" />
                <dx:GridViewToolbarItem Command="ExportToXlsx"/>
                <!-- ... -->

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IEnumerable

IHierarchyData

Inheritance

Object StateManager CollectionItem MenuItem DevExpress.Web.GridCommandMenuItem GridToolbarItem GridViewToolbarItem MVCxGridViewToolbarItem

See Also

GridViewToolbarItem Members

Grid View Toolbars

DevExpress.Web Namespace