onItemClick

fires when a component item was clicked

void onItemClick(object id, [Event e,HTMLElement node] );
idobjectrow/column 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 ... 
});

Related samples

Details

The id parameter has the following structure:

{ row:3, column:"title"}

This object can be passed to the getItem method instead of the id parameter.

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix javascript dashboard framework and page of javascript tree grid product.