Select to view content in your preferred language

Time Slider Bind to feature grid

934
4
04-18-2011 07:56 AM
MattMiley
Deactivated User
Is it possible to have a grid/feature grid bind to a time slider Value?, I have a date picker setup that binds to a time slider on a map. I want the user to be able to use a datepicker to query a time aware layer and get a gird of the results to print a report for each month.
0 Kudos
4 Replies
ChristopherHill
Deactivated User
It may be possible to do what you are asking, but the main purpose of the TimeSlider control was to bind to the Map.TimeExtent property for filtering time aware data on the map.
0 Kudos
MattMiley
Deactivated User
Well all i really want to do is query by date using my date picker and have my grid be the filtered results grid. Whats the best way to achieve this?
0 Kudos
ChristopherHill
Deactivated User
you can use a QueryTask. Build a Query object then you can set Query.TimeExtent to TimeSlider.Value or create a TimeExtent using your a DatePicker. You can then take the results from the query task and use them in a FeatureDataGrid.
0 Kudos
gabrielvazquez
Deactivated User
you can use a QueryTask. Build a Query object then you can set Query.TimeExtent to TimeSlider.Value or create a TimeExtent using your a DatePicker. You can then take the results from the query task and use them in a FeatureDataGrid.


Chris,
Do you have code which demonstrates binding a querytask results to a timeslider. Or can you direct me to a url that demonstrates this. I am running numerous attribute/spatial queries that push out to sldata:dataGrid, and I am trying to pass these query results to a time slider also.

For example I using a simple spatial query similar to below,  and im trying to bind the results to a timeslider also.
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery
0 Kudos