Add OnClick handler to anchor tag in document manager

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    14 posts
    Member since:
    Aug 2014

    Posted 11 Feb 2015 Link to this post

    How do I add a onclick handler to my DocumentManager control? I can alter the href or URL property from a ExtendedFileProvider to add "javascript:clickHandler()". But this isn't good practice.

    I have both a LinkManager and a DocumentManager. How do I add an onClick to the <a> tags that get generated by these controls?

    Thank you!
  2. Ianko
    Ianko avatar
    1510 posts

    Posted 16 Feb 2015 Link to this post

    Hi Andrew,

    You can use the client-side OnClientDomChange event to intercept when a link is added from eh Hyperlink manager or the Document manager. The attached handler can further modify the anchor element inserted and add the desired onclick handler.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top