DashboardToolbarItem.ClickAction Property
Gets or sets an action performed after a user clicks the dashboard toolbar item (the command button).
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.1.Win.dll
NuGet Package: DevExpress.Win.Dashboard
Declaration
Property Value
Type | Description |
---|---|
Action<DashboardToolbarItemClickEventArgs> | An Action delegate method that specifies an action performed after clicking the command button. |
Remarks
The following code snippet calls the UpdateFormatting()
method when a user clicks the custom Update Format Rule toolbar item in a dashboard title. The Action method is passed in the constructor.
private void DashboardViewer1_CustomizeDashboardTitle(object sender, CustomizeDashboardTitleEventArgs e)
{
DashboardToolbarItem itemUpdate = new DashboardToolbarItem((args) => UpdateFormatting()) {
Caption = "Update Format Rule",
};
e.Items.Add(itemUpdate);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClickAction property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.