I'm having issues with hiding or disabling the Search button on the Report Viewer.
I found the attribute here for the Search Dialog:
I found this link on how to disable a button in the Viewer:
https://docs.telerik.com/reporting/knowledge-base/hide-or-change-html5-report-viewer-toolbar-buttons
But when I try it, the Search button continues to be active.
This is the code I have below. I would also point out that the reason I am trying to hide the Search is because when I do try to a search, I get a bunch of gobbly-gook that appears in the results. See attached. I'm not sure what that is all about. So I am willing to keep the Search button active as an alternative if there is a way to return clean results.
<script type="text/javascript">
$("#reportViewer1").telerik_ReportViewer({
serviceUrl: "api/reports/",
//templateUrl: /ReportViewer/templates/telerikReportViewerTemplate-FA-19.0.25.211.html
reportSource: {
report: "PhoneDirectory.trdp",
parameters: {
CultureID: "en"
},
viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
/* renderingEnd: onRenderingEnd,*/
ready: function () {
$("[data-command='telerik_ReportViewer_toggleSearchDialog']").parent().hide();
},
scale: 1.0,
enableAccessibility: false,
sendEmail: { enabled: true }
}
});
</script>-->