This is a migrated thread and some comments may be shown as answers.

After Report Renders Event

2 Answers 302 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 03 Nov 2020, 04:25 AM

I am looking to execute a stored procedure after a report has finished rendering. 

Scenrio:

Using HTML5 Report Viewer and dynamically passing the report to open in the viewer. Not all reports will execute a stored proc after report completes rendering.

If familiar with Oracle Reports this would mimic the functionality of an After Report Trigger..

Is there anyway using .net core C# code to do this in a library ?

2 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 05 Nov 2020, 03:01 PM

Hi Michael,

Generally, the Html5 Viewer triggers events on the client-side. The renderingEnd(e, args) event occurs after the report is ready. However, this is a jQuery event.

Report rendering happens server-side, and the viewer checks whether the report is rendered with the Get Document Info request. You may override the ReportsController GetDocumentInfo Method to execute the additional logic when the base implementation of the method returns status 200 OK. For example, like :

public override HttpResponseMessage GetDocumentInfo(string clientID, string instanceID, string documentID)
{
    var baseInfo = base.GetDocumentInfo(clientID, instanceID, documentID);

    if (baseInfo.StatusCode == HttpStatusCode.OK)
    {
        // Place your logic here
    }

    return baseInfo;
}

Regards,
Todor
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Michael
Top achievements
Rank 1
answered on 06 Nov 2020, 02:01 PM
Excellent response Thank You very much. 
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Todor
Telerik team
Michael
Top achievements
Rank 1
Share this question
or