onItemClick
fires when a component item was clicked
function onItemClick( // the id of the clicked item id: string, // a native event object e: Event, // the target HTML element node: HTMLElement): void
Example
Section titled “Example”grid.attachEvent("onItemClick", function(id, e, node){ var item = this.getItem(id); //... some code here ...});
also check the next samples:
Details
Section titled “Details”The most common use case for such events is getting info about the component item that has just been clicked. It can be done with a common getItem method that requires item ID as parameter.
See also
Section titled “See also”Articles
API