I'm using knockoutjs in my app and would like to utilize the viewer in a modal popup. I have it wrapped in a script template. But when the template is displayed, the viewer display is "hidden". My assumption is because it is in a script template. When i move the same initialize code outside the template and into the page html, it displays.
So i guess i'm wondering if there is a way to initialize the control via javascript or if we have to use server side code?
How to initialize via Javascript
Re: How to initialize via Javascript
At the moment only server side code is supported, but could you open a ticket on the support platform and provide us with an example so we can take a look, investigate and possibly find a way?
Re: How to initialize via Javascript
Hi
Do we have solution for the problem highlighted in the post?.... viewer display is hidden, even if I override the same. document appear is not Fit to page...
Do we have solution for the problem highlighted in the post?.... viewer display is hidden, even if I override the same. document appear is not Fit to page...
Re: How to initialize via Javascript
In that kind of case, you might want to check if there's a callback available in your framework that can be used to execute some JS when the modal popup is done loading and/or displaying in order to call this method: https://www.docuvieware.com/guides/aspn ... ayout.html
It will force the control to recompute the control layout and adapt to the container, this should fix the issue.
It will force the control to recompute the control layout and adapt to the container, this should fix the issue.
Who is online
Users browsing this forum: No registered users and 1 guest