Back to Devexpress

ASPxClientGridBase.ToolbarItemClick Event

aspnet-js-aspxclientgridbase.md

latest2.4 KB
Original Source

ASPxClientGridBase.ToolbarItemClick Event

Fires after a toolbar item has been clicked.

Declaration

ts
ToolbarItemClick: ASPxClientEvent<ASPxClientGridToolbarItemClickEventHandler<ASPxClientGridBase>>

Event Data

The ToolbarItemClick event's data class is ASPxClientGridToolbarItemClickEventArgs. 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.
itemGets the clicked menu item
processOnServerSpecifies whether or not to process the event on the server. Inherited from ASPxClientProcessingModeEventArgs.
toolbarIndexGets the toolbar index.
toolbarNameGets the toolbar name.
usePostBackSpecifies 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

ASPxClientGridBase Class

ASPxClientGridBase Members