Forum Discussion
VisualUpdate doesn't trigger in custom visual when switching from reading to edit mode
Hi ViDuong ,
Thanks for posting in Microsoft Fabric Community.
When a custom visual uses matrix dataViewMapping, switching between Reading and Edit mode may not always trigger an update, since the host might not rebuild the dataView during that action unless something in the data or layout has changed.
Others have observed similar behaviour, so this might be how the platform currently handles mode transitions. Because of this, the update function may only run after actions such as resizing the visual or modifying fields.
Similar cases and related discussions were discussed here:
Visual.update() not triggered when switching from ... - Microsoft Fabric Community
Re: VisualUpdate doesn't fire in custom visual whe... - Microsoft Fabric Community
If you feel this behaviour might not be expected, you can raise it through the Power BI Issues page for further review:
Issues - Microsoft Fabric Community
Hope this helps. Please reach out for further assistance.
Thank you.
- ViDuong8 months agoFrequent Visitor
v-veshwara-msft thank you, I will try workaround
- v-veshwara-msft8 months agoCommunity Support
Hi ViDuong ,
Thanks for the update.
Just to add one more detail that came up in this related discussion: Re: Visual.update() not triggered when switching f... - Microsoft Fabric Community its noted that this behaviour might only appear when the report is viewed in Actual Size mode. In other view modes, switching between Reading and Edit may trigger a resize event, which then causes the visual to receive an update with the mode flag included.
You may want to check whether the mode works differently when the report is not in Actual Size, as this might help validate the workaround you are testing.
Feel free to share your observations once you try it.
Thank you.
- v-veshwara-msft8 months agoCommunity Support
Hi ViDuong ,
We wanted to kindly follow up regarding your query.
Hope the earlier information helped. If you found a workaround during your testing, please feel free to share it here so others in the community can benefit from it.Thank you.