Forum Discussion
Manchaary
1 year agoFrequent Visitor
Extra Updates Triggered in Custom Visual After Resize in Power BI Embedded (React)
I have a custom visual that uses an infinite loader and dataReductionAlgorithm to load data segments on scroll. In the update method of my Visual class, I handle Create, Segment, and Resize (includin...
Anonymous
1 year agoNot applicable
Hi Manchaary ,
This is the related document, you can view this content:
How to handle events in a Power BI embedded analytics application | Microsoft Learn
Solved: Embedding Power BI with custom page view: fitToWid... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Manchaary1 year agoFrequent Visitor
If I update settings using pagesLayout property. Visual will trigger extra "Create and Data" event after "ResizeEnd"
report?.updateSettings({ layoutType: models.LayoutType.Custom, customLayout: { displayOption: models.DisplayOption.ActualSize, pageSize: { type: models.PageSizeType.Custom }, pagesLayout: { [activePage.name]: { visualsLayout: { [visual.name]: { x: 0, y: 0, width, height } } } } } });
Updating settings without pagesLayout property will not trigger extra update and will stop after "Resize End" but will not properly resize visual