Using PdfViewer in a DevExpress Callback

Hello,

we are using DevExpress in our project and it will be necessary to call the pdfviewer control via callback.

Therefore i put the pdfviewer in an ascx-file. 
Without callback, i can include the ascx file in the default.aspx and the pdfviewer control is shown correctly.
But as soon as i want to load the ascx via callback, i only see the surrounding div-container, but the pdfviewer is not visible.

Do you have any experience with the pdfviewer-control and DevExpress Callbacks?

I attached my sample project. Could you please have a look whats the problem?

THank you very much.
Matthias

Attachment: PdfViewerSyncfusion_8607180a.zip

20 Replies

AA Akshaya Arivoli Syncfusion Team April 3, 2020 04:26 PM UTC

Hi Matthias, 

Thank you for using Syncfusion products. 

We are facing issues in running the provided sample since third party control DevExpress is used in it. However, we are currently trying to check the reported query using our Syncfusion control with the provided details. We will update you with further details on April 7th, 2020  

Regards, 
Akshaya  



MW Matthias Wagner April 16, 2020 09:34 AM UTC

Hello,

something new on this topic?

Thanks
Matthias


AA Akshaya Arivoli Syncfusion Team April 20, 2020 12:29 AM UTC

Hi Matthias, 
  
We regret for the inconvenience caused. We are currently checking on it we will update you with more details on April 20, 2020 
  
Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team April 20, 2020 04:21 PM UTC

Hi Matthias, 
  
Thank you for your patience. 
  
As mentioned earlier, we have faced issues in running the provided sample due to the missing of  third party control DevExpress is used in it. However we have tried to render the PDF Viewer in ascx page, but the PDF Viewer height is not maintained properly and the below script error is thrown. We will analyze further on it and update you with more details. Meanwhile can you please confirm whether you are facing the same issue from your side and if not please revert us with the modified sample. It will be helpful for us to investigate further and assist you better, 
  
  
  
 
  
  
  
  
Regards, 
Akshaya 



MW Matthias Wagner April 21, 2020 01:48 PM UTC

Hi Akshaya,

i could reproduce the same error on the example you provided.

I dont know if I get you right. But I managed to create an example without DevExpress in which I render the PdfViewer in an ascx-Page.
Please let me know if that was the problem or if I eventually misunderstood you.

But loading the PdfViewer in an ascx-Page was not our problem, we managed to do this. The main problem is to load the control via Callback.
Further I send you a link to the DevExpress Forum where I asked the same question. Perhaps their answer can help you also?!


Thanks for your help
Matthias


Attachment: PdfViewerSyncfusion_cfdafb9e.zip


AA Akshaya Arivoli Syncfusion Team April 22, 2020 02:12 PM UTC

Hi Matthias, 

Thank you for your update. 

As mentioned earlier, we have faced issues in running the provided sample due to the missing of third party control DevExpress is used in it. So, can you please share us the sample with all the DevExpress references, it will be helpful for us to investigate further and assist you better. Also can you please confirms whether you have tried with using the AutoPostBack property of our button to true and handle its Click event as mentioned in the provided forum link. 

Regards, 
Akshaya  


MW Matthias Wagner April 24, 2020 01:54 PM UTC

Hi Akshaya,

the example is the one from my original post. I attached it again and removed everything unecessary from DevExpress.

I can confirm that I tried using the AutoPostBack property from DevExpress. Theoretically this is working, but the problem with autopostback is, that the page is reloading and our application would permanently be flickering. So unfortunately this is not an option for us.

Regards
Matthias

Attachment: PdfViewerSyncfusion_b98bf540.zip


AA Akshaya Arivoli Syncfusion Team April 27, 2020 12:46 PM UTC

Hi Matthias , 

Thank you for your update. 

We have tried to run the provided sample but as mentioned earlier, we have faced issues in running the provided sample due to the missing of third party control DevExpress is used in it. So, can you please share us the sample with all the DevExpress references, assemblies it will be helpful for us to investigate further and assist you better. 

Regards, 
Akshaya. 



MW Matthias Wagner April 27, 2020 01:17 PM UTC

Hi Akshaya,

unfortunately the upload is restricted to 30mb. Is there a way I can send you the whole project.
At the moment I have to remove the assemblies cause otherwise I couldnt upload the file.

Regards
Matthias


AA Akshaya Arivoli Syncfusion Team April 28, 2020 07:42 AM UTC

Hi Matthias, 

Can you please upload your project with the assemblies in google drive and share us the link through this mail [email protected] with necessary details. Please let us know if you need any other assistance. 
   
Regards, 
Akshaya 



PN Preethi Nesakkan Gnanadurai Syncfusion Team April 28, 2020 12:30 PM UTC

From: Matthias Wagner  
Sent: Tuesday, April 28, 2020 8:01 AM

Subject: Thread ID 152943: Using PdfViewer in a DevExpress Callback 

  
Hello, 
 
in the mentioned thread, i was told to share you the link with my sourcecode example on google drive. 
 
  
 
Thank you very much, regards 
 
Mit freundlichen Grüßen 
Matthias Wagner 



AA Akshaya Arivoli Syncfusion Team April 29, 2020 04:11 PM UTC

Hi Matthias, 
  
Thank you for your update. 
  
On running the provided sample PDF Viewer not rendered(as shown in below screen), we will analyze further on it and update you with more details on May 4th, 2020. Meanwhile can you please confirm us whether you are mentioned this as issue, if not please provide more details, These details will be helpful for us to investigate further and assist you better. 
  
 
  
Regards, 
Akshaya 



MW Matthias Wagner April 30, 2020 11:44 AM UTC

Hi Akshaya,

I can confirm, that this is the issue.

Thanks for your help.
Matthias



AA Akshaya Arivoli Syncfusion Team May 1, 2020 07:13 AM UTC

Hi Matthias, 

Thank you for your update.  

As mentioned earlier we will analyze further on it and update you with more details on May 4th, 2020. 

Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team May 4, 2020 03:43 PM UTC

Hi Matthias, 
  
We have analyzed the reported issue with the provided sample, since third party control DevExpress is used we are facing difficulties in finding the cause. We will analyze further on it and update you with more details on May 6th, 2020. Meanwhile can you please provide more details about your requirement and use case scenario, also, confirm us whether you want to initialize the PDF Viewer on the button click on new web page. These details will be helpful for us to investigate further and also we will check whether it can be achieved using our Syncfusion component. 
  
  
Regards, 
Akshaya. 



AA Akshaya Arivoli Syncfusion Team May 6, 2020 12:41 PM UTC

Hi Matthias, 


We have analyzed further on the reported issue, but we are unable to find the exact root cause, since third party control, DeExpress is used. Can you please provide more details about your requirement and use case scenario. So that we will try to achieve your requirement using our Syncfusion components and provide you the prototype. Also confirm us whether you want to initialize the PDF Viewer on the button click on new web page. Please confirm us whether the provided details meet your requirement. These details will be helpful for us to investigate further  



Regards, 
Akshaya 



MW Matthias Wagner May 6, 2020 02:48 PM UTC

Hi Akshaya,

thanks for your answer.
In our use case we have on our aspx-page an aspxgridview. Each row of this grid represents one PDF-document. In the last column of the grid is a button.
If you click  this button, the pdf-data is fetched from the applicationservice. To do this we need to do a callback.
After getting the data from applicationservice we need to show the data in the pdfviewer, which is located in a panel next to the gridview.

Please tell me if I can give you some more information you need.

Regards
Matthias


AA Akshaya Arivoli Syncfusion Team May 7, 2020 04:29 PM UTC

Hi Matthias , 
  
Thank you for your update 
  
Based on the provided details we suspect that your requirement can be achieved using our Syncfusion Grid, Button and PDF Viewer controls. We will create the sample as per your requirement with these controls and update you with more details on May 11th, 2020. 
Regards, 
Akshaya 
  



AA Akshaya Arivoli Syncfusion Team May 12, 2020 12:01 AM UTC


Sorry for the inconvenience caused. 

We are still working on creating the sample as per the requirement and update you with further on it and update you with more details on May 13th, 2020 

Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team May 14, 2020 03:02 AM UTC

Hi Matthias,
We have created the sample as per your requirement and shared the same in the below link, 


In the above sample clicking on the ‘Load PDF’ button in the grid rows will get the ‘OrderId’ of that row and pass the same to the server side (GetDocument()), whether you can get the document details based on that.  

Note: We will load the same document for all rows for demo purpose. You can get the document as per your requirement and return the base64 string. 

Please try it and revert us with more details about your requirement if you need any further assistance. 

Regards, 
Akshaya 


Loader.
Up arrow icon