<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Some Silverlight asynchronous processing issues in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/some-silverlight-asynchronous-processing-issues/m-p/268514#M7005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a little trouble getting the "sublayer list" functionality to work properly as it is presented under mapping in the Silverlight interactive sdk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is happening is that occasionally the GetDefaultVisibleLayers function will run before my dynamic services' layers collection is populated causing an error.&amp;nbsp; This does not happen very often and I believe it's related to some asynchronous process running which does not allow me to guarantee that the layers collection is populated when the dynamic services' "initialized" event is fired off.&amp;nbsp; The initialized event is where the GetDefaultVisibleLayers function is being called like in the SDK example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any workaround for this or some check that I can put into place to make sure that the layers collection is populated prior to calling GetDefaultVisibleLayers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another general question that I have is also related to asynchronous processing.&amp;nbsp; We have a feature layer based on a SQL server query.&amp;nbsp; What I want to do is establish a where clause for the service based on some default selections in other silverlight controls that are databound using RIA services.&amp;nbsp; I need to make sure that these controls are populated with data prior to building my feature layer where clause.&amp;nbsp; Are there any tried and true methods to setting up some kind of process order whereby I can wait on building the where clause until I know the other controls are populated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Feb 2011 12:11:29 GMT</pubDate>
    <dc:creator>PhilDegler</dc:creator>
    <dc:date>2011-02-22T12:11:29Z</dc:date>
    <item>
      <title>Some Silverlight asynchronous processing issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/some-silverlight-asynchronous-processing-issues/m-p/268514#M7005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a little trouble getting the "sublayer list" functionality to work properly as it is presented under mapping in the Silverlight interactive sdk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is happening is that occasionally the GetDefaultVisibleLayers function will run before my dynamic services' layers collection is populated causing an error.&amp;nbsp; This does not happen very often and I believe it's related to some asynchronous process running which does not allow me to guarantee that the layers collection is populated when the dynamic services' "initialized" event is fired off.&amp;nbsp; The initialized event is where the GetDefaultVisibleLayers function is being called like in the SDK example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any workaround for this or some check that I can put into place to make sure that the layers collection is populated prior to calling GetDefaultVisibleLayers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another general question that I have is also related to asynchronous processing.&amp;nbsp; We have a feature layer based on a SQL server query.&amp;nbsp; What I want to do is establish a where clause for the service based on some default selections in other silverlight controls that are databound using RIA services.&amp;nbsp; I need to make sure that these controls are populated with data prior to building my feature layer where clause.&amp;nbsp; Are there any tried and true methods to setting up some kind of process order whereby I can wait on building the where clause until I know the other controls are populated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Phil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 12:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/some-silverlight-asynchronous-processing-issues/m-p/268514#M7005</guid>
      <dc:creator>PhilDegler</dc:creator>
      <dc:date>2011-02-22T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Some Silverlight asynchronous processing issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/some-silverlight-asynchronous-processing-issues/m-p/268515#M7006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can check for IsInitialized property, this should have already been set to true or false when Initialized event fires.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your other question, I'm not sure if Loaded or LayoutUpdated are the events you need to know whether all controls drawn. If I understood your question right, it's a Silverlight question? Maybe you can also post at their forum.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Feb 2011 23:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/some-silverlight-asynchronous-processing-issues/m-p/268515#M7006</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-02-22T23:14:44Z</dc:date>
    </item>
  </channel>
</rss>

