You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,13 +26,13 @@ When using the [TelerikPdfViewer](https://docs.telerik.com/blazor-ui/components/
26
26
27
27
This knowledge base article also answers the following questions:
28
28
29
-
- How to prevent interaction with Upload controls while a PDF is loading in TelerikPdfViewer?
29
+
- How to prevent interaction with Upload component while a PDF is loading in TelerikPdfViewer?
30
30
- How to hide Upload component in TelerikPdfViewer until the PDF file is fully loaded?
31
-
- How to use custom CSS with TelerikPdfViewer to manage control visibility?
31
+
- How to use custom CSS with TelerikPdfViewer to hide Upload component?
32
32
33
33
## Solution
34
34
35
-
To control the visibility of upload controls in the `TelerikPdfViewer` while a PDF is loading, apply custom CSS to hide the upload controls. This can be achieved by leveraging the [`OnOpen`](slug://components/pdfviewer/events#onopen) event to apply a CSS class with the required styles that hide the controls until the PDF file is loaded successfully.
35
+
To control the visibility of Upload component in the `TelerikPdfViewer` while a PDF is loading, apply custom CSS to hide the upload controls. To achieve that, use the [`OnOpen`](slug://components/pdfviewer/events#onopen) event to apply a CSS class with the required styles that hide the controls until the PDF file is loaded successfully.
36
36
37
37
````RAZOR
38
38
<TelerikPdfViewer Data="@PdfSource"
@@ -42,11 +42,11 @@ To control the visibility of upload controls in the `TelerikPdfViewer` while a P
42
42
Class="@PdfClass">
43
43
</TelerikPdfViewer>
44
44
<style>
45
-
.my-pdf .k-external-dropzone {
45
+
.hide-pdf-upload .k-external-dropzone {
46
46
display: none;
47
47
}
48
48
49
-
.my-pdf .k-upload {
49
+
.hide-pdf-upload .k-upload {
50
50
display: none;
51
51
}
52
52
</style>
@@ -56,13 +56,8 @@ To control the visibility of upload controls in the `TelerikPdfViewer` while a P
0 commit comments