Skip to main content
All docs
V23.2

ToolbarItem.Id Property

Gets or sets the item identifier.

Namespace: DevExpress.Blazor.Reporting.Models

Assembly: DevExpress.Blazor.Reporting.v23.2.Viewer.dll

NuGet Package: DevExpress.Blazor.Reporting.Viewer

Declaration

public string Id { get; set; }

Property Value

Type Description
String

A string that identifies an item.

Remarks

The following code prints the toolbar item identifiers along with their IconCssClass and Text values:

<DxReportViewer @ref="reportViewer" OnCustomizeToolbar="OnCustomizeToolbar">
</DxReportViewer>

@code {
    DxReportViewer reportViewer { get; set; }

    void OnCustomizeToolbar(ToolbarModel toolbarModel)
    {
        foreach (var item in toolbarModel.AllItems)
        {
            string message = String.Format(" | {0} | {1} | {2} |",
                item.Id, item.IconCssClass, item.Text);
            System.Diagnostics.Debug.Print(message);
        }
    }
}

The result is shown below.

Id IconCssClass Text
FirstPage dxd-icon-ReportViewer_Toolbar_FirstPage First Page
PreviousPage dxd-icon-ReportViewer_Toolbar_PreviewsPage Previous Page
PageOfPages
NextPage dxd-icon-ReportViewer_Toolbar_NextPage Next Page
LastPage dxd-icon-ReportViewer_Toolbar_LastPage Last Page
HighlightEditingFields dxd-icon-ReportViewer_Toolbar_EditingFields Highlight Editing Fields
ZoomOut dxd-icon-ReportViewer_Toolbar_ZoomOut Zoom Out
Zoom
ZoomIn dxd-icon-ReportViewer_Toolbar_ZoomIn Zoom In
Print dxd-icon-ReportViewer_Toolbar_Print Print
ExportTo dxd-icon-ReportViewer_Toolbar_ExportTo Export To
CancelDocumentCreation dxd-icon-ReportViewer_Toolbar_StopBuild Cancel Document Creation

Implements

See Also