Many codes on the Internet cannot be used. The following code has been verified to be usable:
Java code
var MasterTable = grid.get_masterTableView(); var selectedRows = MasterTable.get_selectedItems(); var row = selectedRows[0]; var cell = MasterTable.getCellByColumnUniqueName(row, "ID"); cell = cell.innerHTML;