Select to view content in your preferred language

DataGrid on Click

3300
3
Jump to solution
01-31-2012 11:48 AM
by Anonymous User
Not applicable
Original User: vaayu

Working with my first silverlight API as web App in cs.  I'm trying to create a "Find" task on my map using the link
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Find

I do get the results from my layer but, when I click i get the error attached.  I don't see any marker highlighted and also wondering if there was a way to create some Right click options on the data grid for the row, like zoom to feature etc.,

Appreciate any help!
0 Kudos
1 Solution

Accepted Solutions
DominiqueBroux
Esri Frequent Contributor
Looks like you didn't create the GraphicsLayer in XAML.
In the sample you pointed out, there is this XAML line:
            <esri:GraphicsLayer ID="MyGraphicsLayer" />

Check that you didn't forget it in your project.

View solution in original post

0 Kudos
3 Replies
DominiqueBroux
Esri Frequent Contributor
Looks like you didn't create the GraphicsLayer in XAML.
In the sample you pointed out, there is this XAML line:
            <esri:GraphicsLayer ID="MyGraphicsLayer" />

Check that you didn't forget it in your project.
0 Kudos
by Anonymous User
Not applicable
Original User: vaayu

Thank you Dominique.. That was hit..but, my point is not highlighted for some reason.  It finds the record in the grid but, when I click on it, I dont see anything highlighted.  Any thoughts?
Looks like you didn't create the GraphicsLayer in XAML.
In the sample you pointed out, there is this XAML line:
            <esri:GraphicsLayer ID="MyGraphicsLayer" />

Check that you didn't forget it in your project.
0 Kudos
DominiqueBroux
Esri Frequent Contributor
This thread is about the same kind of issue.
This might give you some clue about your issue (bad binding?, bad symbol?)
0 Kudos