A newer version of this page is available. Switch to the current version.

ASPxClientGridBase.ToolbarItemClick Event

Fires after a toolbar item has been clicked.


ToolbarItemClick: ASPxClientEvent<ASPxClientGridToolbarItemClickEventHandler<ASPxClientGridBase>>

Event Data

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

Property Description
item Gets the clicked menu item
processOnServer Gets or sets a value that specifies whether the event should be finally processed on the server side. Inherited from ASPxClientProcessingModeEventArgs.
toolbarIndex Gets the toolbar index.
toolbarName Gets the toolbar name.
usePostBack Specifies whether a postback or a callback is used to finally process the event on the server side.


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 properties to identify the clicked toolbar item and specify whether a postback should be generated to pass the event processing to the server side and generate the server-side ToolbarItemClick event.


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

See Also