Required library edition: Required library file: dhtmlxtoolbar.js
returns a position of a listed option
var pos = toolbar.getListOptionPosition(parentId, optionId);