Check documentation for the latest version of dhtmlxSuite newId DHTMLX Docs

newId

returns (and reserves) next unique ID for any purposes

number newId();
numberid

Example

var data = {};
data[window.dhx.newId()] = {
    param: "value",
    param2: "value2"
};

Back to top