Skip to main content
A newer version of this page is available. .

ASPxClientGridBase.ToolbarItemClick Event

Fires after a toolbar item has been clicked.

Declaration

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
handled Specifies whether the toolbar item click is handled manually, so no default processing is required.
item Gets the clicked menu item
processOnServer Specifies whether or not to process the event on the server. 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.

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 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.

Note

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