Detect the Cause for a Change Event

3 posts, 1 answers
  1. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2013 Link to this post

    Can I find out, if a route is changed by means of browser buttons or by clicking a link or by explicit navigate call?

    Michael G. Schneider
  2. Answer
    Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 27 Mar 2013 Link to this post

    Hello Michael,

    Unfortunately, such cause data is not available in the hashChange window event (which the router uses internally). If you need such logic, you may bind to the link click event and perform additional logic in the handler, calling navigate afterwards.

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 27 Mar 2013 Link to this post

    Hello Petyo,

    thanks a lot for the answer.

    Michael G. Schneider
Back to Top