PDFViewer not loading document inside TabView

I'm trying to render a PDF on my Xamarin Forms app using the SfPdfViewer inside a SfTabView but it only works if I put it on the first tab. If I try another tab the PDF container is displayed but the content is not loaded unless I manually navigate to a specific page.


See attached files with a sample, I'm using the same view and PDF file on the fisrt and last tab. The first tab loads correctly while the last doesn't. 


Attachment: PDFTest_c83ba54c.zip

3 Replies

VD Vikram Devaraj Syncfusion Team September 2, 2022 05:09 PM UTC

Hi Juan Jiminez,


We suspect that the reported issue is due to the SfTabView control and not due to the SfPdfViewer control. We are working to confirm this, and we will let you know the details on September 05, 2022


Regards,
Vikram



VV Vijayakumar Viswanathan Syncfusion Team September 5, 2022 02:07 PM UTC

Hi Juan Jiminez,


Query: When PdfViewer is used inside the SfTabView, the content of the Pdf was displayed in the first tab only and Not displayed in others.


We are able to reproduce the reported issue on our side using the sample you have shared. In the sample, when we set the  EnableVirtualization property as false the issue was solved and the contents were displayed properly in SfTabView. So we recommend you to use it by setting EnableVirtualization as false.


If you require EnableVirtualization kindly share the details of the platform in which the issue occurs. Please let us know if you need any other details.


Thanks,

Vijayakumar V



JJ Juan Jiminez September 9, 2022 09:26 PM UTC

Hi  Vijayakumar,


This workaround works by now.


Thanks, 


Loader.
Up arrow icon