DHTMLX Docs & Samples Explorer

Index
dhtmlxdataview
API Methods

## locate (ev)

Required library edition:

Required library file: dhtmlxdataview.js

Returns item ID by html event ( checks if any item is in area of html event ). Returns null if relative item isn't found.

- ev - native html event

    	some.onclick=function(e){
    		var id = view.locate(e||event);
    		if (id)
    			do_something();
    	}