@Kroll.method public int getIndexByName(String name) { int index = -1; int idx = 0; if (name != null) { for (TableViewSectionProxy section : getSections()) { for (TableViewRowProxy row : section.getRows()) { String rname = TiConvert.toString(row.getProperty(TiC.PROPERTY_NAME)); if (rname != null && name.equals(rname)) { index = idx; break; } idx++; } if (index > -1) { break; } } } return index; }