dataGrid.FilterSource = dataGrid.GraphicsLayer.Graphics.Where(g => g.Geometry.Extent.Intersects(map.Extent)).ToList();
private void MyMap_ExtentChanged(object sender, ExtentEventArgs e) { var dataGrid = MyDataGrid; var map = sender as ESRI.ArcGIS.Client.Map; dataGrid.FilterSource = dataGrid.GraphicsLayer.Graphics.Where(g => g.Geometry.Extent.Intersects(map.Extent)); }
I want to implement dataform or datagrid items should updated on base of view of map.it means if i have 20 features are available on my graphical layer.but on my screen i can see 10 features and another 10 features are available but i can visible them if i do panning or zoomin or zoom out.so i want on datagrid or dataform only 10 features details should visible and i do zoom in or panning it should updated if now i can see only 2 features then it should display only 2 features details on data grid or dataform.is there any way if i use envelop or something?and also i am using two different tables one is spacial table and another is project details and they are related with one to many relationship so i don't have single table with all details I think it is very difficult but i will appritiate if any one has solution.ThanksForam
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.