How to disable "New" menu of the web report designer?

1 Answer 311 Views
Report Designer - Web
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Tursunkhuja asked on 01 Dec 2021, 10:30 AM

Hi,

We use web report designer to modify some reports. Mainly we use Standalone report designer to create report.

In our case, we don't need Menu>New menu. Is it possible to somehow disable or hide New menu?

 

Thank you,  

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 03 Dec 2021, 01:22 PM

Hello,

Currently, the New option can be disabled only by hiding it through JS or CSS, for example:

<script type="text/javascript">
    $(document).ready(function () {
        $("#webReportDesigner").telerik_WebReportDesigner({
            toolboxArea: {
                layout: "list" //Change to "grid" to display the contents of the Components area in a flow grid layout.
            },
            serviceUrl: "api/reportdesigner/",
            report: "Product Catalog.trdp"
        }).data("telerik_WebDesigner");
    });

    setTimeout(function () {

        var newOption = $("li[data-action='documentNew']");
        newOption.attr("style", "display:none");

    }, 500);
    
</script>

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Designer - Web
Asked by
Tursunkhuja
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or