Hi,
We want to upgrade from blazor reportviewer to Native Blazor Reportviewer, and so far the upgrade has ran smoothly.
However, we are still challenged on how to hide the document map that is toggled on automatically by default.
First, we tried to hide the document with the following code:
<ReportViewer @ref=...
ServiceType=...
ServiceUrl=...
ReportSource=...
DocumentMapVisible="false" --> Should this not hide document map when opening report?
ParametersAreaVisible=...
ViewMode=...
ScaleMode=...
/>
Unfortunately this did not work, but maybe there is another simple way of hiding the document map?
Additionally, we have looked into another approach, where we have added a JS function to programmatically hide the button by clicking on the document map button on the reportviewer toolbar:
function reportViewerMapClick() {
$(".k-i-dictionary-add").click();
}
We have tested the JS function above on a button, where it works:
<button OnClick="reportViewerMapClick()" type="button"> Hide Document Map </button>
But for this to truly work, we need to use this JS function on an event of some sort.
My question is therefore: Are there any simple and easy way of hiding the document map, when opening a report. And if not, are there any events available for when a report has finished loaded?