Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
    • Overview
    • Installation & Deployement
    • EO.Web ToolTip
    • EO.Web Rating
    • EO.Web Slider & RangeSlider
    • EO.Web ListBox
    • EO.Web ComboBox
    • EO.Web Captcha
    • EO.Web ASPX To PDF
    • EO.Web Slide
    • EO.Web Flyout
    • EO.Web EditableLabel
    • EO.Web ImageZoom
    • EO.Web Floater
    • EO.Web Downloader
    • EO.Web ColorPicker
    • EO.Web HTML Editor
    • EO.Web File Explorer
    • EO.Web SpellChecker
    • EO.Web Grid
    • EO.Web MaskedEdit
    • EO.Web Splitter
    • EO.Web Menu
    • EO.Web Slide Menu
    • EO.Web TabStrip
    • EO.Web TreeView
    • EO.Web Calendar
    • EO.Web Callback
    • EO.Web MultiPage
    • EO.Web Dialog
    • EO.Web AJAXUploader
    • EO.Web ProgressBar - Free!
    • EO.Web ToolBar - Free!
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
Handling ToolBar Event

EO.Web ToolBar supports both server and client side events.

Handling Client Side Event

By default EO.Web ToolBar only raises client side event. The following table lists all client events:

Event Remark
ClientSideOnItemClick Occurs when a tool bar item is clicked. The following code demonstrates how this event is used:
function on_item_click(toolBar, toolBarItem)
{
    window.alert("ToolBar item '" + 
        toolBarItem.getCommandName() + "' clicked.");
}
ClientSideBeforeSubMenuExpand Use this property to modify the drop down menu before the sub menu is displayed. The following code demonstrates how this event is used:
function before_submenu_expand(toolBar, toolBarItem, subMenu)
{
    var menuItem = subMenu.getItemByIndex(0);
    menuItem.setText("New item text!");
}

Handling Server Side Event

EO.Web ToolBar can raise server side ItemClick event when AutoPostBack is set to true. Handling this event is no different than handling any other server event.