Datagrid Results Only Appear After Browser Resize

Discussion created by elove on Oct 24, 2011
Latest reply on Jan 30, 2012 by elove

I have a query task that displays results in a datagird at the bottom of my map. The query function seems to be working, however, the results do not appear in the table unless I manually resize my browser. I think it may be a refresh and/or resize issue, but since I am a newbie, I am not sure. Has anyone else run into this issue before? I have included the code I think may be having issues.


  map = new esri.Map("map",{ nav:true, extent:intExtent, lods: lods});

        //Add the topographic layer to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service     
        var basemapUrl = "http://mapserv.utah.gov/ArcGIS/rest/services/UtahBaseMap-Terrain/MapServer"; 
        var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapUrl); 
        var dynamicURL = "http://gis.slco.org/wwwrest/services/public/Surveyor/MapServer"; 
        dynamicMap = new esri.layers.ArcGISDynamicMapServiceLayer(dynamicURL);
   esri.config.defaults.geometryService = new esri.tasks.GeometryService
   var measurement = new esri.dijit.Measurement({ 
            map: map 
          }, dojo.byId('measurementDiv')); 

        //create find task with url to map service 
        findTask = new esri.tasks.FindTask("http://gis.slco.org/wwwrest/services/public/Surveyor/MapServer"); 
  dojo.connect(map, "onLoad", function(map) { 
          dojo.connect(dijit.byId('map'), 'resize', map,map.resize); 
    var overviewMap = new esri.dijit.OverviewMap({map: map},dojo.byId("overviewDiv")); 
         if (dynamicMap.loaded) { 
         // alert("is loaded");
        else { 
          dojo.connect(dynamicMap, "onLoad", buildLayerList);
          //alert("now loaded"); 
 function initFunctionality(map) { 
        dojo.connect(map, "onClick", doIdentify); 
        identifyTask = new esri.tasks.IdentifyTask("http://gis.slco.org/wwwrest/services/public/Surveyor/MapServer"); 
        identifyParams = new esri.tasks.IdentifyParameters(); 
        identifyParams.tolerance = 3; 
        identifyParams.returnGeometry = true; 
        identifyParams.layerIds = [1,6]; 
        identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL; 
        identifyParams.width  = map.width; 
        identifyParams.height = map.height; 
        map.infoWindow.resize(415, 200); 
        //map.infoWindow.setTitle("Identify Results");