<?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: Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload) in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/817148#M2662</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you pick the data in the slicer, through a &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-selection-and-interaction-with-other-visuals/" target="_self"&gt;Selction mechanism&lt;/A&gt; or &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api" target="_self"&gt;Filter API&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;If you work with a slicer it is recommended to use the second option.&lt;/P&gt;&lt;P&gt;Also, every time when you change the size of a visual, the Constructor woun't be called, only Update method will be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 10:23:58 GMT</pubDate>
    <dc:creator>v-evelk</dc:creator>
    <dc:date>2019-10-14T10:23:58Z</dc:date>
    <item>
      <title>Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/816714#M2659</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I developed a timeline slicer. Everything works fine except that I realised the selection display won't stay when I shifted page. I know when page changes, the visual will automatically reload and hence runs the constructor and reset the visual to default state. How can I prevent the reload or set the constructor to reload the previous status? Is it the workaround something to do with bookmarking? Ken&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Slicer date range displayed" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/199878iC07CCB81E58B2C2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-10-14_1250.png" alt="Slicer date range displayed" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Slicer date range displayed&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Slicer date range disappeared after reload." style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/199877i700739592CCA9E2F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2019-10-14_1251.png" alt="Slicer date range disappeared after reload." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Slicer date range disappeared after reload.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 01:54:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/816714#M2659</guid>
      <dc:creator>cantoneye</dc:creator>
      <dc:date>2019-10-14T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/817148#M2662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you pick the data in the slicer, through a &lt;A href="https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/adding-selection-and-interaction-with-other-visuals/" target="_self"&gt;Selction mechanism&lt;/A&gt; or &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/visuals/filter-api" target="_self"&gt;Filter API&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;If you work with a slicer it is recommended to use the second option.&lt;/P&gt;&lt;P&gt;Also, every time when you change the size of a visual, the Constructor woun't be called, only Update method will be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/817148#M2662</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-10-14T10:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/817729#M2666</link>
      <description>&lt;P&gt;Hi Evgenii,&lt;/P&gt;&lt;P&gt;I use Filter API. So I have no problem with the filter even though the page changes and the visual reload, the data is still filtered. However, the visual needs to display which is filtered. When page changes or the dashboard refresh, I think the visual will reload and the Constructor will be called. I believe something must be done in the Constructor to call back my previous status.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 22:41:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/817729#M2666</guid>
      <dc:creator>cantoneye</dc:creator>
      <dc:date>2019-10-14T22:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/819522#M2670</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are right, you can restore filter from update options.&lt;/P&gt;&lt;P&gt;If you use API 2.2 or higher, you will be able to read property&amp;nbsp;&lt;SPAN&gt;jsonFilters from Options parameter inside Update method.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Evgenii Elkin,&lt;BR /&gt;Software Engineer&lt;BR /&gt;Microsoft Power BI Custom Visuals&lt;BR /&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 09:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/819522#M2670</guid>
      <dc:creator>v-evelk</dc:creator>
      <dc:date>2019-10-16T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual: Slicer selection display won't stay when page changes. (Visuals will reload)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/821536#M2673</link>
      <description>&lt;P&gt;Thanks for your help!! It works now.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 05:20:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Custom-Visual-Slicer-selection-display-won-t-stay-when-page/m-p/821536#M2673</guid>
      <dc:creator>cantoneye</dc:creator>
      <dc:date>2019-10-18T05:20:09Z</dc:date>
    </item>
  </channel>
</rss>

