messages.errorMessages.notSupportedString
(default: "Only pdf files allowed.")
Specifies the error message displayed when a user attempts to open a file that is not a PDF format. This validation occurs during file selection or upload.
Example
<div id="pdfviewer"></div>
<script type="module">
$("#pdfviewer").kendoPDFViewer({
pdfjsProcessing: {
file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
},
messages: {
errorMessages: {
notSupported: "Custom message: Only PDF files are allowed."
}
}
});
</script>
In this article