Trigger the save command of the report designer programatically

1 Answer 11 Views
Report Designer - Web
Víctor
Top achievements
Rank 1
Iron
Iron
Iron
Víctor asked on 03 Apr 2024, 02:53 PM

I have an app in Blazor that has an embedded designer.

I have the designer in a dialog, and I want to trigger the save command of the designer programatically (when the user clicks the "Aceptar"  dialog button). 
Is there a way to do it?

1 Answer, 1 is accepted

Sort by
0
Accepted
Momchil
Telerik team
answered on 08 Apr 2024, 09:31 AM

Hi Victor,

Thank you for reaching out.

While the Web Report Designer's commands are not exposed yet, you can trigger the save action programmatically by getting a reference to the save button in the designer's menu and clicking it. For example:

function triggerSave() {
	var saveBtn = $("#webReportDesigner").find("[data-action='documentSave']");
	saveBtn.click();
}

That said, we believe that the designer's main commands should be exposed which is why I have logged a feature request in our Public Feedback Portal on your behalf.

Expose an API for invoking the Web Report Designer's main menu commands

I am also updating your account's Telerik points as a token of appreciation for bringing this to our attention.

I hope this helps.

Best Regards,
Momchil
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Víctor
Top achievements
Rank 1
Iron
Iron
Iron
commented on 08 Apr 2024, 02:38 PM

Thanks, the code sample worked
Tags
Report Designer - Web
Asked by
Víctor
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Momchil
Telerik team
Share this question
or