Back to Devexpress

ASPxGridView.ToolbarItemClick Event

aspnet-devexpress-dot-web-dot-aspxgridview-4e0756f3.md

latest2.6 KB
Original Source

ASPxGridView.ToolbarItemClick Event

Fires after a toolbar item has been clicked.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxGridViewToolbarItemClickEventHandler ToolbarItemClick
vb
Public Event ToolbarItemClick As ASPxGridViewToolbarItemClickEventHandler

Event Data

The ToolbarItemClick event's data class is ASPxGridViewToolbarItemClickEventArgs. The following properties provide information specific to this event:

PropertyDescription
HandledSpecifies whether the toolbar item click is handled manually, so no default processing is required. Inherited from ASPxGridToolbarItemClickEventArgs.
ItemGets the toolbar item.

Remarks

Write a ToolbarItemClick event handler to perform specific actions when a toolbar item has been clicked. Note that this event fires immediately after the left mouse button is released. If the button is released when the mouse pointer is not over a toolbar item, the event doesn’t fire.

You can use the event parameter’s ASPxGridViewToolbarItemClickEventArgs.Item property to identify the clicked toolbar item.

On the client side, you can respond to a toolbar item click using the ASPxClientGridBase.ToolbarItemClick event.

Note

Custom toolbar item click is processed on the client side by default using the ASPxClientGridBase.ToolbarItemClick event handler. Set the ASPxClientProcessingModeEventArgs.processOnServer property to true to process a custom toolbar item click on the server side.

See Also

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace