AnsweredAssumed Answered

Populating a Popup from a dojoGrid feature

Question asked by JJhill on May 18, 2017
Latest reply on May 22, 2017 by khutchins-esristaff

We have populated a dojoGrid with the search results from a feature class and now when it zooms to a selected feature in the grid it zooms and opens a blank popup but cannot figure out how to populate it. This is with the 4.3 API



grid.on("RowClick", function(evt){
   var idx = evt.rowIndex;
   rowData = grid.getItem(idx);
   document.getElementById("results").innerHTML =
   "You have clicked on " + rowData.SampleID + ".";

   var cnt = results[idx];

   center: cnt, // position:
   zoom: 13

   features: results[idx].feature,
   //updateLocationEnabled: true,
   content: results[idx].feature.attributes,
   location: cnt

}, true);