AnsweredAssumed Answered

Scroll my grid to the row I clicked in a featureLayer

Question asked by schlot on Aug 4, 2015
Latest reply on Aug 4, 2015 by schlot

My map contains a featureLayer and an OnDemandGrid.  The grid appears in a side panel and it's tied to an extent-change listener so that it only lists the features in the current map extent.  The grid has a click event that zooms and opens an infoWindow when the user selects a row.

 

I'd like to have a click on my featureLayer also tie back to my grid.  I'd like the grid to scroll to the row corresponding to the feature the user just clicked on.  The ID on the row is the OBJECTID of the feature, so there is a common piece of information.

 

Here is a link to an example:

 

featureLayer_grid - JSFiddle

 

Can I do this?

Outcomes