Binding navigate or viewShow events

3 posts, 0 answers
  1. Maddy
    Maddy avatar
    9 posts
    Member since:
    Jun 2012

    Posted 03 Jul 2012 Link to this post

    We are trying to bind the navigate and/or the viewShow events to one of our panes in a split view. However, the events only seem to fire on the initial page load, but after that, no matter how many times the view changes in the pane, no events fire. What is the correct way of getting these events to fire everytime? Currently we are using the following to bind the event:
    data-bind="events: {navigate: alert('test')}"

    Thanks for any help
  2. Iliana Nikolova
    Iliana Nikolova avatar
    2570 posts

    Posted 05 Jul 2012 Link to this post

    Hello Maddy,

    The issue is caused by the wrong syntax. The correct way for binding events through data attribute is : 
    <div data-role="pane" data-navigate="functionNavigate" data-view-show="functionShow">

    The functionNavigate function is executed when the navigate event fires and the functionShow is executed in the viewShow event. 
    I hope this helps.

    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Jack
    Jack avatar
    100 posts
    Member since:
    Jan 2007

    Posted 01 Nov 2012 Link to this post

    Where would you add the data-navigate attribute when the pane is automatically and implicitly created by 
Back to Top