function selectGrid() { console.log("selecting grid"); console.log(featureName); var row = grid.row(featureName); console.log(row); rowID = row.id; console.log(rowID); if (row.id === featureName) { console.log("derek sucks"); //selectRow(row); grid.row(featureName).element.scrollIntoView(); } }
Solved! Go to Solution.
Application currently sits here: www.portlandbps.com/gis/gda/index.html
It's buggy, particularly the 'zoom to feature and open popup when row in the grid is selected' feature I'm attempting to implement, but it's early.
Thanks.
- d
function selectGrid(e) { var row = window.grid.row(featureName); rowID = row.id; if (rowID === featureName) { window.grid.select(row); console.log(grid.isSelected(row)); window.grid.scrollIntoView(row); } }
function selectGrid(e) { for (var i = 0; i < 250; i++) { grid.clearSelection(); row = grid.row(i); console.log(row.data); if (row.data.id === featureID) { grid.select(i); row.element.scrollIntoView(); break; } }; }
Application currently sits here: www.portlandbps.com/gis/gda/index.html
It's buggy, particularly the 'zoom to feature and open popup when row in the grid is selected' feature I'm attempting to implement, but it's early.
Thanks.
- d