DHTMLX Docs & Samples Explorer

locate (ev)

Required library edition: This method works with any edition of DHTMLX library

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();
	}