Documentation

onItemClick

fires when a component item was clicked

void onItemClick(string id, [Event e,HTMLElement node] ){ ... };

Parameters

idstringthe id of the clicked item
eEventa native event object
nodeHTMLElementthe target HTML element

Example

grid.attachEvent("onItemClick", function(id, e, node){
    var item = this.getItem(id);
    //... some code here ... 
});

Details

The event scope is limited to menu level. It can be attached either to a top-level menu, or to any submenu, but not for the whole menu.

At the same time, the onMenuItemClick can catch item clicks on any level.

See also

Back to top