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

Angular Viewer - exportBegin

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brooks
Top achievements
Rank 1
Brooks asked on 29 Nov 2019, 06:50 AM

I want to disable the default export feature and trigger a custom download when the export is selected. I can disable the default execution by 

args.handled = true;

Now I want to access an external service from the parent context. However the parent context is not available inside the exportBegin event. Is there a way I can achieve this?

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 02 Dec 2019, 01:50 PM

Hello Brooks,

Indeed, inside Angular Report Viewer events the "this" value will point to the report viewer object, hence the Angular components' properties will be inaccessible in report viewer events. A workaround is described in the Access component properties inside Angular Report Viewer events KB article. Briefly, you need to create a new bound function that wraps the function handling the report viewer event.

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Brooks
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or