2
Document Viewer - Disable options in header
Question asked by Pratik Shroff - 9/20/2023 at 8:37 AM
Unanswered
Hi,

We want to disable some option header for document viewer. Is there any properties we can enable and disable options in header or disable complete header.

Thanks,
Pratik

1 Reply

Reply to Thread
0
Patrick Riehmers Replied
Hello Pratik,

i'm not sure if this an official way to do, but we use the ClientEvent "Loaded" 
ClientEvents = new DocumentViewerClientEvents
{
    Loaded = "pdfViewerLoadEvent"
}
and get into the Window over JS with jQuery to hide some Options
function pdfViewerLoadEvent(sender, e) {
    var documentViewer = sender;
    var viewerWindow = document.getElementById(documentViewer.rcId).contentWindow;
    viewerWindow.$("#backPage").hide();
    viewerWindow.$("#forwardPage").hide();
}
For the complete Header you can use the CSS Selector ".ui-widget-header" or ".toolbar", the div has both classes.

Hopefully that helps.

Best regards
Patrick

Reply to Thread