I figured it out by myself. The lines of codes shown in red are the codes I added to the original source code to make the floating Data Grid pop up in the lower right corner of the map.
... ...
if(floatorfixed == "float"){
if(!myfloatdg){
myfloatdg = new SearchWidgetFloatDG();
PopUpManager.addPopUp(myfloatdg,map,false,PopUpManagerChildList.POPUP)
PopUpManager.centerPopUp(myfloatdg);
var popupWindowX:Number = map.width - myfloatdg.width - floatDGRightOffset;
var popupWindowY:Number = map.height - myfloatdg.height - floatDGBottomOffset;
myfloatdg.move(popupWindowX, popupWindowY);
}else{
... ...
We are trying to position the floating Data Grid to the lower right corner of the map in order not to block the map contents in the center which is default position of floating Data Grid. We made a fex changes to the "showGridResults" function in the source code. After we did that, we found that nothing popped up aftwer clicking the Data Grid View button. did we do something wrong? The lines of codes shown in red are those we made the changes. Any help or suggestion would be greatly appreciated.
private function showGridResults():void
{
try{
if(gridFields.length == 0){
showMessage("No Datagrid configured for this layer", false);
return;
}
if(floatorfixed == "float"){
if(!floatDG){
floatDG = new SearchWidgetFloatDG();
floatDG.x = map.width - floatDG.width - floatDGRightOffset;
floatDG.y = map.height - floatDG.height - floatDGBottomOffset;
PopUpManager.addPopUp(floatDG,map,false,PopUpManagerChildList.POPUP)
PopUpManager.bringToFront(floatDG);
}else{
... ...