Check documentation for the latest version of dhtmlxSuite exists DHTMLX Docs

exists

returns true if the item with the defined ID already exists

boolean exists(string|number id);

Parameters

idstring|numberid of the item in question

Returns

booleantrue/false if the item exists/doesn't exist

Example

var check = myDataView.exists(id);

Back to top