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(); } }
Application currently sits here: www.portlandbps.com/gis/gda/index.htmlIt'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) { 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; } }; }
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); } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.