DxReportViewer.ToolbarModel Property
Provides access to the toolbar items.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v24.1.Viewer.dll
NuGet Package: DevExpress.Blazor.Reporting.Viewer
Declaration
Property Value
Type | Description |
---|---|
ToolbarModel | An object that contains toolbar items. |
Remarks
The following code determines whether the Print
toolbar item is enabled:
<DxReportViewer @ref="reportViewer"></DxReportViewer>
@code {
DxReportViewer reportViewer;
bool isPrintEnabled;
// ...
foreach (var item in reportViewer.ToolbarModel.AllItems)
{
if (item.Id == "Print")
{
isPrintEnabled = item.GetEnabled();
}
}
// ...
}
See Also