|
POST
|
This thread about column definition by code may help : http://forums.arcgis.com/threads/12341-Defining-Results-Datagrid-In-Code-behind Thank you very much Dominique and Jennifer, for your time 🙂 all your suggestions really helped me for getting the solution. sometimes I miss those ADF application days...
... View more
04-05-2011
12:08 AM
|
0
|
0
|
730
|
|
POST
|
If you need to edit graphic.Attributes and push this change to the server, you need to use FeatureLayer. Hi Jennifer, Thanks for your reply, I dont want to edit the attributes. I just want to display another set of attributes since my query task will change from time to time. Because as much I know about silverlight if I bind datagrid columns to attributes I cannot change those binding values at runtime again for another querytask with different field return values.
... View more
04-04-2011
10:05 PM
|
0
|
0
|
730
|
|
POST
|
Did you eventually solve your issue after looking at this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery ? (as suggested in another thread) Thanks, Yes I had solved it and replied to that thread too. But here now I want to change the attribute binding of the datagrid as per my querytask input. In code behind if else case I will be changing the querytask (query url and the columns to return) but I am not able to change the binding of the attributes of the datagrid. Am I doing something wrong here?
... View more
04-04-2011
09:00 PM
|
0
|
0
|
730
|
|
POST
|
Did you look at this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery ? The result of the query task is displayed in a datagrid, and when a row is selected, the feature is selected in the map. Is it what you want to do? Thank you very much Dominique!
... View more
04-03-2011
11:09 PM
|
0
|
0
|
455
|
|
POST
|
I have successfully bind a datagrid and I am getting the results populated ,also after clicking on the results/rows in the datagrid, the graphic layer on the map highlights the graphics by symbol change. But my issue now is that if I change the querytask parameters, as per user selection criteria for query from code behind my attribute binding in xaml will not work at all... please help me here 🙂 My code for datagrid --- <slData:DataGrid x:Name="FindDetailsDataGrid" AutoGenerateColumns="False" HeadersVisibility="All" Background="White" BorderBrush="Black" BorderThickness="1" RowStyle="{StaticResource MyCustomRow}" SelectionChanged="FindDetailsDataGrid_SelectionChanged" LoadingRow="FindDetailsDataGrid_LoadingRow" HorizontalScrollBarVisibility="Hidden" Grid.Row="1" CanUserSortColumns="True" IsReadOnly="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto" > <slData:DataGrid.Columns> <slData:DataGridTextColumn CanUserSort="False" Binding="{Binding Attributes[use_]}" Header="Use"/> <slData:DataGridTextColumn CanUserSort="False" Binding="{Binding Attributes[use_type]}" Header="use_type"/> I have already tried the suggestions given in other forums posts for using esritoolkit featuredatagrid and the code is >>---- <esritoolkit:FeatureDataGrid x:Name="FindDetailsDataGrid" AutoGenerateColumns="True" HeadersVisibility="All" Background="White" BorderBrush="Black" BorderThickness="1" RowStyle="{StaticResource MyCustomRow}" SelectionChanged="FindDetailsDataGrid_SelectionChanged" LoadingRow="FindDetailsDataGrid_LoadingRow" HorizontalScrollBarVisibility="Hidden" Grid.Row="1" CanUserSortColumns="True" IsReadOnly="True" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto" Width="Auto" Map="{Binding ElementName=Map}" GraphicsLayer="{Binding Path=Layers[MyGraphicsLayer], ElementName=Map}" > but after all tries (try outs / combinations) , my purpose of highlighting the graphics on the graphic layer as per user row selection on datagrid is defeated 😞 .... esritoolkit:FeatureDataGrid with AutoGenerateColumns="True" -----> this parameter generates rows filled with useless details.. ------------------------------ Please guide me on how to have automatic datagrid row populated without binding each attribute , from xaml. Because if I bind attributes in XAML then I cannot modify attributes as per new query. CODE SNIPPET will help.. thnx in advance
... View more
04-03-2011
10:57 PM
|
0
|
6
|
1182
|
|
POST
|
How is set the ItemsSource property of your datagrid? Hw are set the columns? Thank you for the reply! <slData:DataGridTextColumn Binding="{Binding Attributes[test]}" Header="test" /> <slData:DataGridTextColumn Binding="{Binding Attributes[name]}" Header="Name"/> <slData:DataGridTextColumn Binding="{Binding Attributes[bld_id]}" Header="Bld_ID" /> <slData:DataGridTextColumn Binding="{Binding Attributes[Remark]}" Header="Remark"/> I tried the above code for binding with the exact names as the attribute column names...but did not help.. in CS file - FindDetailsDataGrid.ItemsSource = args.FeatureSet; so i guess the binding of the datagrid was correct but what I wanted to know is that how in findtask sample on the datagrid selection changed event the map zooms to results ..same functionality I wanted to show with query task , so that I have my datagrid populated with some more fields other than the primary field thus helping the user to decide which feature he wants to select.
... View more
03-28-2011
04:15 AM
|
0
|
0
|
455
|
|
POST
|
Hi, I need help for a query task which zooms to the results from the datagrid selection changed event. In the given sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#QueryWithoutMap If I click on the grid results the map should zoom/highlight to correct features.. Like in the find task sample > http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Find. After (through query task) several attempts (all failed) I was not able to get the attributes filled in a datagrid , though I get a datagrid filled with rows (row count seems to be correct) but with empty records..white spaces Please help as I dont know what I am doing wrong in my code.
... View more
03-28-2011
01:28 AM
|
0
|
4
|
2196
|
|
POST
|
Silverlight does not support 3D, so therefore the API doesn't either. Also ArcGIS Server doesn't return Z values from geometries either. Microsoft have announced that the next major update of Silverlight (v5) will add support for this. However we are not yet ready to announce whether we will be providing a 3D viewer built on this, but rest assured we are of course looking into what that feature could mean for the Silverlight API down the line. Thanks for the update.
... View more
03-21-2011
09:03 PM
|
0
|
0
|
756
|
|
POST
|
Hi Sir, Please have a look at the below links. http://blogs.esri.com/Dev/blogs/apl/archive/2010/10/08/3D-Terrain-Mapping-in-a-Browser.aspx http://blogs.esri.com/Dev/blogs/apl/archive/2010/10/07/Elevation-Server-Object-Extension.aspx I am not sure whether they help you or not.. Thanks vara, I had already gone through these links.. 😞 they are for raster 3d .I have a shapefile with Z values of the Airport Flight Path. anyways thanks for your time.. atleast someone replied though 🙂
... View more
03-20-2011
05:47 AM
|
0
|
0
|
756
|
|
POST
|
Hi, I had gone through several posts, but still unable to find a way to view 3d data on ESRI Silverlight API based application. I came to know after googling, that I need to use isometric projection for viewing 3d. But still wondering why nobody has posted anything related in ESRI Silverlight API forums or I might have missed searching properly for the exact post. Anyways please - I need some good pointers (code samples if there are any...) on how to proceed for viewing my 3d vectors (which look very cool in ArcScene) on ESRI Silverlight API.
... View more
03-19-2011
10:22 PM
|
0
|
5
|
3820
|
|
POST
|
Hi, I am from SAP Labs Bangalore and we are developing a GIS appication in silverlight 4. We have observed a issue sometimes that if we display a graphic symbol on map and then zoom in , then move the map (pan) in correct direction to locate the object again . Sometimes the symbol doesn't appear on map by itself , we have to trigger zoom out then the object gets displayed again. Please look into the issue. Regards, Chitra I have some pointers here (have this code running in one of my application for zooming to graphics in find features tool, it works perfect for me), which might help you I guess... DataGrid dataGrid = sender as DataGrid; int selectedIndex = dataGrid.SelectedIndex; if (selectedIndex > -1) { FindResult findResult = (FindResult)FindDetailsDataGrid.SelectedItem; Graphic graphic = findResult.Feature; ESRI.ArcGIS.Client.Geometry.Geometry geom = findResult.Feature.Geometry; if (geom.GetType() == typeof(ESRI.ArcGIS.Client.Geometry.Polygon)) { graphic.Symbol = LayoutRoot.Resources["MyFillSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; } if (geom.GetType() == typeof(ESRI.ArcGIS.Client.Geometry.Polyline)) { graphic.Symbol = LayoutRoot.Resources["DefaultLineSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; } if (geom.GetType() == typeof(ESRI.ArcGIS.Client.Geometry.MapPoint)) { graphic.Symbol = LayoutRoot.Resources["DefaultMarkerSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; } genmethods.ClearGraphik(Map, true, graphic); genmethods.Flash(graphic); int _zoomDistance = 200; Envelope objZoomExtent = new Envelope(graphic.Geometry.Extent.XMax + _zoomDistance, graphic.Geometry.Extent.YMax + _zoomDistance, graphic.Geometry.Extent.XMin - _zoomDistance, graphic.Geometry.Extent.YMin - _zoomDistance); Map.ZoomTo(objZoomExtent.Extent); }
... View more
02-01-2011
08:58 PM
|
0
|
0
|
288
|
|
POST
|
Hello! This error is throw when my aplication is runnig Any ideas why?? thanks check these links. your error might be due to accesspolicy xml files missing. http://forums.silverlight.net/forums/p/18515/188750.aspx http://stackoverflow.com/questions/254899/silverlight-rest-service-security-exception
... View more
02-01-2011
06:56 PM
|
0
|
0
|
634
|
|
POST
|
Hi, In one of my application requirements are that I have to develop a took to export a selected feature as a shapefile. the feature has been digitized by the user and after completing the digitization task he now wants to download the feature as a shapefile (have already got that done by editor widget). I do not want to go for Clip/Ship and Zip geoprocessing method , instead the blog post - http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/03/11/Sending-geometry-between-Silverlight-and-the-server-using-WCF.aspx .... did indeed throw light in that direction of possibility but still I am stuck since being new to WCF. In another post in esri forums - http://forums.esri.com/Thread.asp?c=158&f=2455&t=297091&mc=2.... the code has been given to save the selected graphic as a csv, which still helps me in my approach in some way... I would like to request some help / pointers for saving a shapefile directly from a selected Graphic from browser (I am least bothered about attributes here as the export feature is just one polygon). I am using VS 2010 , AGS 10 , ESRI SL API 2.1 , .NET 4.0 , SL 4.0. Thanks in Advance.
... View more
01-31-2011
01:23 AM
|
0
|
0
|
828
|
|
POST
|
Hi guys, I've created two posts in my technical blog that demonstrates how to do that. I've created an extension method for the ArcGISDynamicMapServiceLayer class. Unfortunally, my blog is in brazilian portuguese but you guys can easily translated it using Google (I guess). See links below: Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 1 http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_29.html Estendendo a ESRI ArcGIS API For Microsoft Silverlight/WPF �?? Parte 2 http://araimundo.blogspot.com/2010/05/estendendo-esri-arcgis-api-for_6136.html Best regards. Ari C. Raimundo Application Developer Curitiba-PR-Brazil Hi Ari, Thanks a lot for your code it helped me a lot... saved my day, it gives a exact approach for fetching the fields of a DynamicMapServer layer I have been searching for a while for a guide for similar approach and you have done a awesome job and moreover shared your work -- not just giving pointers like in other posts. Thats really cool. Thanks a lot all points to you. Also by the way Curitiba is a nice cool town.
... View more
01-12-2011
10:06 PM
|
0
|
0
|
1430
|
|
POST
|
Hey, check this link - it might help you. http://www.wynapse.com/WPFE/Moving_WPFE_Objects_with_the_mouse.aspx
... View more
01-05-2011
11:03 PM
|
0
|
0
|
247
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-31-2024 01:05 AM | |
| 1 | 08-13-2025 02:51 AM | |
| 1 | 07-29-2024 12:11 AM | |
| 1 | 04-07-2019 11:33 AM | |
| 1 | 04-15-2021 01:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-25-2025
01:46 AM
|