<?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 Re: Check parent checkbox when checking child checkbox in laylerlist widget with groups of layers in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841611#M9386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-9561-custom-layerlist-widget"&gt;https://community.esri.com/docs/DOC-9561-custom-layerlist-widget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2017 06:14:27 GMT</pubDate>
    <dc:creator>ofrig</dc:creator>
    <dc:date>2017-03-16T06:14:27Z</dc:date>
    <item>
      <title>Check parent checkbox when checking child checkbox in laylerlist widget with groups of layers</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841610#M9385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way that after the user clicks a child checkbox, the parent checkbox is also flagged?&lt;/SPAN&gt; &lt;SPAN&gt;I created the groups of layers in the layerlist widget, using a featurecollection, and if I just check the child checkbox, without checking the parent checkbox, the layer is not displayed on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gilberto.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841610#M9385</guid>
      <dc:creator>GilbertoMatos</dc:creator>
      <dc:date>2017-03-15T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check parent checkbox when checking child checkbox in laylerlist widget with groups of layers</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841611#M9386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-9561-custom-layerlist-widget"&gt;https://community.esri.com/docs/DOC-9561-custom-layerlist-widget&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 06:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841611#M9386</guid>
      <dc:creator>ofrig</dc:creator>
      <dc:date>2017-03-16T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Check parent checkbox when checking child checkbox in laylerlist widget with groups of layers</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841612#M9387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your suggestion.&lt;/SPAN&gt; &lt;SPAN&gt;Your layerlist widget looks pretty good.&lt;/SPAN&gt; &lt;SPAN&gt;What happens is that I already have a layerlist custom widget, so what I need is just to make the group checkbox, that is, the father of what I checked, also be checked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set up groups manually using featurecollection.&lt;/SPAN&gt; &lt;SPAN&gt;Before your suggestion, I tried using the "layerInfo.setTopLayerVisible (true);" statement, but I did not succeed.&lt;/SPAN&gt; &lt;SPAN&gt;I did this within the "_onCkSelectNodeClick" function of the "LayerListView.js" file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached, I'm including my layerlist widget.&lt;/SPAN&gt; &lt;SPAN&gt;If you can take a look, I thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Gilberto.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 17:38:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/check-parent-checkbox-when-checking-child-checkbox/m-p/841612#M9387</guid>
      <dc:creator>GilbertoMatos</dc:creator>
      <dc:date>2017-03-16T17:38:56Z</dc:date>
    </item>
  </channel>
</rss>

