I am calling queryTask.ExecuteRelationshipQueryAsync on a layer (States) and am able to get back in the ExecuteRelationshipQueryCompleted event, the results I am expecting (e.g., for a given State, I can get the related Counties for that State). Likewise if I call ExecuteRelationshipQuery to find, say, the senators for that state, I can get those. However, what I would like to do is get both the related counties and the related senators for a state when a state is picked by the user. Strangely, the ExecuteRelationshipQueryCompleted only fires for the counties but not for the senators. If I move the query for senators first, then it fires, but the query for the counties does not.
Here's the tree-view type structure that I want to build when a person selects a state (Oregon) from a drop-down list.
OREGON
--COUNTIES
------Lane
------Benton
------...(more counties)
--SENATORS
------Bob Smith
------Sally Jones
I'm not sure I understand what the problem is...why doesn't the ExecuteRelationshipQueryCompleted event fire when I call it a second time? Is it busy or something and therefore ignores me? Is there someway to wait for it to complete one query before executing another.