Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ToolbarItem.Id Property

Gets or sets the item identifier.

Namespace: DevExpress.Blazor.Reporting.Models

Assembly: DevExpress.Blazor.v24.2.Viewer.dll

NuGet Package: DevExpress.Blazor.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:

Razor
<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