Select to view content in your preferred language

Feature table component - Scroll to Object ID

218
2
2 weeks ago
RJGIS
by
Emerging Contributor

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.

0 Kudos
2 Replies
D_Atkins
Frequent Contributor

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.

0 Kudos
DavidSolari
MVP Regular Contributor

The scrollToRow method?

0 Kudos