ToolbarItem.Id Property
In This Article
Gets or sets the item identifier.
Namespace: DevExpress.Blazor.Reporting.Models
Assembly: DevExpress.Blazor.v24.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Viewer
#Declaration
#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 | Icon |
Text |
---|---|---|
First |
dxd-icon-Report |
First Page |
Previous |
dxd-icon-Report |
Previous Page |
Page |
||
Next |
dxd-icon-Report |
Next Page |
Last |
dxd-icon-Report |
Last Page |
Highlight |
dxd-icon-Report |
Highlight Editing Fields |
Zoom |
dxd-icon-Report |
Zoom Out |
Zoom | ||
Zoom |
dxd-icon-Report |
Zoom In |
dxd-icon-Report |
||
Export |
dxd-icon-Report |
Export To |
Cancel |
dxd-icon-Report |
Cancel Document Creation |
See Also