tboehm42

Control Zoom extent on onRowClickHandler(evt)

Discussion created by tboehm42 on Apr 27, 2010
Latest reply on Jun 28, 2011 by rwoodsong
My function works fine but I need the final zoom extent to be further out.
My current code is:

      //Zoom to the parcel when the user clicks a row
        function onRowClickHandler(evt) {
            var clickedTaxLotId = grid.getItem(evt.rowIndex).OBJECTID;
            var selectedTaxLot;
            for (var i=0, il=map.graphics.graphics.length; i<il; i++) {
                var currentGraphic = map.graphics.graphics[i];
                if ((currentGraphic.attributes) && currentGraphic.attributes.OBJECTID == clickedTaxLotId) {
                    selectedTaxLot = currentGraphic;
                    break;
                }
            }

Any ideas would be greatly appreciated.
Thanks!!

Outcomes