DHTMLX Docs & Samples Explorer

getIndex()

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxlayout.js

returns cell's index

    var ind = dhxLayout.cells("a").getIndex(); // will return 0; "a" is item's id
    // or
    var inds = new Array();
    dhxLayout.forEachItem(function(item){
        inds[inds.length] = item.getIndex();
    });
    // inds will contain [0,1,2...] depending on pattern