I know we have a focus item method which is free, could you please tell me how to simulate the findItem myself based on focus?
I actually need a kind of iterator for the (sub)tree, so that I might compare the text myself while searching…
Or maybe there is an another easier way!
You can get array of IDs, of each item in grid as
var ids = tree.getAllSubItems(0).split(",")
and loop through it, using getItemText to get labels of items.