search does not works when we use setOptions({messages: { defaultFileName: node.fileName}})

1 Answer 52 Views
PDFViewer
Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
Aleksandr asked on 03 Sep 2021, 02:05 PM
https://dojo.telerik.com/utOdediD/18

1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 08 Sep 2021, 09:08 AM

Hi Aleksandr,

I have already replied to the question regarding the same issue in the other Forum thread, for convenience, I will paste my reply here as well. 

It is recommended to use the setOptions method in PDFViewer to "update the dimensions of the widget, the active page or the processor".

- https://docs.telerik.com/kendo-ui/api/javascript/ui/pdfviewer/methods/setoptions

You could either configure the defaultFileName initially or you could destroy and recreate the PDFViewer widget using the needed configuration. Here is a Dojo example where this is demonstrated. 

 

And the answer to your question, if the filename can be changed in a more friendly way

In case the defaultFileName is set on initialization of the PDFViewer there should be no issue and the PDFViewer functionalities should work as expected. However, setOptions as mentioned earlier is not suitable for changing all the configuration options of the widget. I am afraid it is not suitable for DefaultFileName as well and in case you need to change the DefaultFileName after initialization of the widget, you will need to use the approach described above. 

In case you have follow-up up questions I would suggest you keep the conversation in a single thread.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PDFViewer
Asked by
Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
Answers by
Neli
Telerik team
Share this question
or