DHTMLX Docs & Samples Explorer

getIndexById(id)

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

returns cell's index by id

  • id - cell's id (string)

Mote: last id depends on count of cells and layout's pattern

    var ind_a = dhxLayout.getIndexById("a"); // returns 0
    var ind_b = dhxLayout.getIndexById("b"); // returns 1
    ...