<?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 Legend CheckBox Events in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211512#M5289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello. One more thing and hopefully I'm in good shape here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have several layers that are large so I set the Mode to "OnDemand" so that more than the defalut 500 features are loaded.&amp;nbsp; These layers are in my legend using legend templates and toggle on and off just fine once the data is loaded.&amp;nbsp; It seems that the OnDemand mode requires some refresh event so that it knows to grab data.&amp;nbsp; So when I click the layer on, check the box in the legend, the data is only displayed once I pan or zoom the map a little bit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, how do I force the layer to load when I first click the check box in the legend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 May 2011 17:00:26 GMT</pubDate>
    <dc:creator>TonyThatcher</dc:creator>
    <dc:date>2011-05-30T17:00:26Z</dc:date>
    <item>
      <title>Legend CheckBox Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211512#M5289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello. One more thing and hopefully I'm in good shape here. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have several layers that are large so I set the Mode to "OnDemand" so that more than the defalut 500 features are loaded.&amp;nbsp; These layers are in my legend using legend templates and toggle on and off just fine once the data is loaded.&amp;nbsp; It seems that the OnDemand mode requires some refresh event so that it knows to grab data.&amp;nbsp; So when I click the layer on, check the box in the legend, the data is only displayed once I pan or zoom the map a little bit.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, how do I force the layer to load when I first click the check box in the legend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 May 2011 17:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211512#M5289</guid>
      <dc:creator>TonyThatcher</dc:creator>
      <dc:date>2011-05-30T17:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Legend CheckBox Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211513#M5290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was eventually able to reproduce the issue but only with 2.1 version. Looks working well with version 2.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which version are you using? If 2.1, could you give a try with 2.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 08:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211513#M5290</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-05-31T08:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Legend CheckBox Events</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211514#M5291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dominique-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using 2.1 and am hesitant to go to 2.2 as it would require the client to be running in a Beta environment.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd prefer a little snippet of code that fires when the check box for certain layers is clicked in the leged.&amp;nbsp; For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if checked, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if layername = one of the names that is an OnDemand layer then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run a refresh on that layer's data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end if&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 16:28:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-checkbox-events/m-p/211514#M5291</guid>
      <dc:creator>TonyThatcher</dc:creator>
      <dc:date>2011-05-31T16:28:11Z</dc:date>
    </item>
  </channel>
</rss>

