<?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 Initializing filter state on when visual is hidden on page load in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Initializing-filter-state-on-when-visual-is-hidden-on-page-load/m-p/4147842#M10547</link>
    <description>&lt;P&gt;I have created a custom date slicer visual. We are hiding/unhiding it with bookmarks in our report. Because of this the visual is destroyed when it is hidden and re-rendered when unhidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use&amp;nbsp;&lt;SPAN&gt;persistProperties to save the selected date range and retrieve it when the visual is unhidden.&amp;nbsp; My issue is that on first load of the report I would like the date slicer to defualt to YTD calculation. How can I distinguish between the frist time the visual is rendered and&amp;nbsp;subsequent renders after the visual is hidden and unhidden?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 12 Sep 2024 17:12:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-12T17:12:00Z</dc:date>
    <item>
      <title>Initializing filter state on when visual is hidden on page load</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Initializing-filter-state-on-when-visual-is-hidden-on-page-load/m-p/4147842#M10547</link>
      <description>&lt;P&gt;I have created a custom date slicer visual. We are hiding/unhiding it with bookmarks in our report. Because of this the visual is destroyed when it is hidden and re-rendered when unhidden.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can use&amp;nbsp;&lt;SPAN&gt;persistProperties to save the selected date range and retrieve it when the visual is unhidden.&amp;nbsp; My issue is that on first load of the report I would like the date slicer to defualt to YTD calculation. How can I distinguish between the frist time the visual is rendered and&amp;nbsp;subsequent renders after the visual is hidden and unhidden?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Sep 2024 17:12:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Initializing-filter-state-on-when-visual-is-hidden-on-page-load/m-p/4147842#M10547</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-12T17:12:00Z</dc:date>
    </item>
  </channel>
</rss>

