Skip to main content

ASPxClientTreeList.ToolbarItemClick Event

Fires after a toolbar item has been clicked.

Declaration

ToolbarItemClick: ASPxClientEvent<ASPxClientTreeListToolbarItemClickEventHandler<ASPxClientTreeList>>

Event Data

The ToolbarItemClick event's data class is ASPxClientTreeListToolbarItemClickEventArgs. 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 related to the event.
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 ASPxTreeList.ToolbarItemClick event.

See Also