Hello all,
I was wondering if it is possible to scroll to a row in the feature table component using an ObjectID instead of an index, or to retrieve the row index based on an Object ID / Graphic.
The only method I found to retrieve the row index is through the cell click event, however I want to zoom to the selected feature in the table when clicking on the feature in the MapView (I use the selection manager to update the selection in the table & map).
I was hoping if there is a solution or workaround for this,
Kind regards,
Reint.
Solved! Go to Solution.
The scrollToRow method?
Not sure on the ability to scroll through the table programmatically, however,
We have used the .filterBySelectionEnabled property to first select a table row (or set of rows), then to enable the filter, showing users only those rows-of-interest. We paired this with a very prominent 'filter' icon that changes color when the property is enabled (and which also acts as the button for users to manually toggle the table's .filterBySelectionEnabled property.
That is indeed also the solution we implemented, however since we are only interested in a single row, it is not the most optimal solution (but it works).
The scrollToRow method?
Thanks! I think that it is it. I am note sure how I missed that function in the documentation.