Each of our treelists contains an Id column that uniquely identifies the row's object. Our first implementation was rather straightfoward in that we simply got the Id from what we know is the correct column (based on static column ordering):
var
row = $(event.currentTarget).closest(
"tr"
);
var
versionId = parseInt(row[0].cells[1].childNodes[1].data);
However, since our users are able to reorder the columns, we're unable to hard-code the cell in order to find the Id of the selected row.
Given a row, how do we find which column is the "Id" column?