Hi supporter,
In my use case, a pdf viewer can load dynamically a document which is selected in a Treeview (code attached).
The user can user arrow up/down on the Treeview to have a quick look to see what is the document he's looking for.
Therefore, this process must be very fast (<=200ms). Currently, the SfPdfViewerServer works well but not fast enough for fill our requirement. I came up with an idea that I can create multiple hidden SfPdfViewerServer controls for the documents and display the corresponding control for the selected documents. However, in fact the Treeview may contain hundreds of document so we don't have to create hundred of SfPdfViewerServer controls, then maybe we only need to create 5 hidden SfPdfViewerServer controls above and 5 hidden SfPdfViewerServer controls below the current selected documents. When user change the selected documents, we update hidden viewers.
I've attached the code.
Can you please give me opinions about this idea? Potential pros & cons?
Thank you,
Tam
Attachment: PdfViewer_Performance_Idea_a3e5c61.zip
Hi Selvakumar,
Thank you for your reply.
Hope to hearing good news from you soon.
Hi Selvakumar,
One more question: currently the PDFViewer save it's data in SessionStorage in browser and Maximum limit of data saving in SessionStorage is about 5 MB. What happened to the PDFViewer when the limit is reached ? Will an exception be thrown?
Thank you,
Tam