Angular Viewer - exportBegin

2 posts, 0 answers
  1. Brooks
    Brooks avatar
    1 posts
    Member since:
    Aug 2012

    Posted 29 Nov 2019 Link to this post

    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?





  2. Todor
    Todor avatar
    593 posts

    Posted 02 Dec 2019 Link to this post

    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.

    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
Back to Top