Select to view content in your preferred language

Zoom to selected row of DataGrid in QueryBuilderWidget of FlexViewre1.3

1759
11
04-07-2010 02:12 AM
Shimonchh
Emerging Contributor
I am working on QueryBuilderWidget of FlexViewer 1.3.I want to zoom the selected row of DataGrid which is populated with the result of query.
Now when I write map.centerAt map doesn???t displayed but map point of corresponding DataGrid row is highlighted.While map.centerAt is working for another widgets.

if (map.scale > zoomScale)
map.scale = zoomScale;
 
map.centerAt(MapPoint(gr.geometry));
map.infoWindow.styleName = "myInfoWindow";
map.infoWindow.show(MapPoint(gr.geometry) );
map.infoWindowContent=vBoxData;

please suggest me some way to center the map at selected map point.
Tags (2)
0 Kudos
11 Replies
MattGiles
Deactivated User
I modified my code to add graphics.attributes (where graphics are the graphics that i add to each point that my findtask returns) to an array called fs. Then i set [myDataGrid.dataProvider = fs]. This fixes the problem i have with the zoom to function however i have lost my location names in the datagrid. How can i send both the names and the objects themselves to the dataprovider??
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
M Giles,

  You will have to actually define your datagrid fields and not depend on the datagrid to build them for you.
0 Kudos