Hello team
We have a two problems with SfPopupLayout component.
1.) Opening SfPopupLayout depends on complexity of the Page(at least that's what it looks like in my test app). This is problem for us because it takes roughly 2 seconds to open the popup in our production app. You can repeat this if you add some elements on the MainPage in my test app and you can track opening popup time in debug output.
2.) If we use CollectionView like ContentTemplate of SfPopupLayout and remeber this instance(popup is not recreating every time when it is opened) content of popup is not displayed in next opening(only first opening display content). If we change ListView instead of collection view, it works. It only happens on iOS and UWP.
I tested this issue on - iOS -> iPad Mini 4(A1538) Software version: 15.2(19C56) and simulator
UWP -> Windows 10 20H2 (OS Build 19042.1348)
I created test app which is attached. Can you please take a look whether I do something wrong or confirm my theory?
Thanks,
Lukas
Attachment: SfPopupLayout_94191c83.zip
Hello Suja,
If you add elements where is commented line in the MainPage.xaml you repeat this issue(check attachment). You can add e.g. 20 elements and track debug output and compare it with time without added elements. There is logged a opening time of popup. If you will add more and more elements, the opening time will be increased. This issue only occurred on iOS. I forgot to mention it before probably. I hope that's clear now.
Regards,
Lukas
Attachment: SfPopupLayoutMainPage_fadbc29a.zip
Hello Suja,
Regarding issue ”Delay in SfPopupLayout opening”.
I understand it depends on ContentTemplate complexity too, but we don't have such complex popup layouts in our app. Anyway, I added scenarios with complex popup layout and simple popup layout and the performance is not so different. Simple popup 50ms, complex popup 100ms -- these measurements are for simple MainPage, running on my iPad (iPad Mini 4 - 2015(A1538)). When the Page gets a little bit more complex, the time for displaying the popup is increasing (even for simple popup layout). For example, I added 30 buttons to the MainPage.xaml and displaying popup took twice as long as before. Imagine a Page where we have a ListView with 12 items visible and each item is composed of ~30 views - in the end, there are hundreds of views on the screen and showing even simple popup takes very long time( ~ 2 seconds).I have attached new version of test app. I want to ask you what options do we have to resolve this issue?
Regarding issue ”CollectionView in SfPopupLayout not renderering in second time” .
Thank you for your help.
Regards
Lukas
Hi Lukas,
We regret to inform you that we could not include the fix as promised. We need time to fix this issue on our end. So we will include the fix in our upcoming weekly nuget release, which is planned to roll out on April 12,2022. We will let you know once it is released with the fix. We appreciate your patience until then.
Regards,
Suja
Hi Lukas,
We regret to inform you that we could not include the fix as promised. We need time to fix this issue on our end. So we will include the fix in our Volume1 2022 SP1 release, which is scheduled to roll out in the end of April month. We will update you once it’s rolled out.
Regards,
Suja
Hello Suja,
Have you fixed it yet?
Thanks
Lukas
Hi Lukas,
We have fixed the reported issue “SfPopupLayout Performance issue based on MainPage content” and included the issue fix in our latest Weekly NuGet release version 20.1.0.52 which is available for download (https://www.nuget.org/).
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
Regards,
Suja