POST
|
Solution found. It turns out that you have connect up the onLoad event and then you can find the elements like this: var handle = dojo.connect(dialog, "onLoad", function(){
dojo.disconnect(handle);
var latWidget = registry.byId("targetLatDD");
latWidget.set("value", "123");
});
... View more
03-18-2014
06:27 AM
|
0
|
0
|
455
|
POST
|
Try using dijit/registry to get a reference to those items in the Dialog widget. Take a look at the documentation on using registry. That was one of the first things I tried. Didn't work. var latWidget = registry.byId("targetLatDD");
... View more
03-18-2014
05:11 AM
|
0
|
0
|
455
|
POST
|
I have the HTML content for a Dijit dialog in another file which I can load into a Dijit Dialog like this: var dialog = dijit.byId('frmTargetDialog');
dialog.placeAt(dojo.body());
dialog.startup();
dialog.show();
var latWidget = dojo.byId("targetLatDD"); // ERRORS HERE
latWidget.set("value", 25); Here is the Div that contains the Dialog:
<div data-dojo-type="dijit/Dialog" id="frmTargetDialog" title="Target Dialog" data-dojo-props="href: 'Form.html'"></div> However, if I try to access the Dijits in the dialog I get a null exception. Anyone know how to access the dijits so that I can populate them? I've tried accessing the textbox before and after showing the dialog and nothing seems to work. Thanks, Ron
... View more
03-14-2014
10:50 AM
|
0
|
3
|
859
|
POST
|
I've got may map so that is rotates and retains the map extent after rotation but the Location Service no longer shows up on the map after the first rotation. Any ideas as to why this would happen?
... View more
02-13-2014
10:21 AM
|
0
|
0
|
692
|
POST
|
Hi Ron, did you ever figure out what was going on with this? Thanks, Jason Unfortunately no.
... View more
09-13-2013
03:14 PM
|
0
|
0
|
180
|
POST
|
I've run through the ArcGIS Administrator and turned on the eval version of the Geostat. Analyst but it tells me that it expired back in 17-Aug-2012. Any ideas on how to resolve this so I can use it? Thanks, Ron
... View more
08-06-2013
06:36 AM
|
0
|
2
|
1841
|
POST
|
Hi Ron, Could you post your XAML/C#? The navigation sample for the SDK has the following XAML: <esri:Map x:Name="MyMap" Extent="-15000000,2000000,-7000000,8000000" WrapAround="True">
<esri:ArcGISLocalTiledLayer ID="myBaseMap" Path="..\\Data\\TPKs\\Topographic.tpk"/>
</esri:Map>
<esri:Navigation Margin="5" HorizontalAlignment="Left" VerticalAlignment="Bottom"
Map="{Binding ElementName=MyMap}" />
And no extra C# is required in the sample. Here is the XAML: <esri:Navigation Height="140"
Background="SteelBlue"
HorizontalAlignment="Left"
Margin="0,0,605,344"
Name="navigation"
VerticalAlignment="Top"
Width="176"
Foreground="SteelBlue"
PanFactor="0.25"
IsManipulationEnabled="False"
Opacity="1"
>
<esri:Navigation.Map>
<esri:Map MinimumResolution="0.0000000000001" IsLogoVisible="False" WrapAround="True" />
</esri:Navigation.Map>
</esri:Navigation>
After some more testing it appears that the problem is because the <esri:Navigation.Map> is being set. Once I remove those four lines of XAML it works as your example shows.
... View more
05-17-2013
05:10 AM
|
0
|
0
|
412
|
POST
|
I have a map and a navigation control in my app. Although the Navigation control's map property is set to the map, it doesn't work. I have to have one line of code to set in order for the Navigation control to buddy with the map: navigation.map = map; If I try with XAML it tells me that the map property is already set. Of course it actually is set in Properties in VS but it doesn't take. Any ideas? Thanks, Ron
... View more
05-15-2013
07:38 AM
|
0
|
4
|
2890
|
POST
|
Anyone know how to enable code assist with v3.4? I've tried copying the jsapi_vsdoc10_v34.js to my Aptana project but it isn't helping.
... View more
04-22-2013
07:59 AM
|
0
|
0
|
496
|