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

Binding navigate or viewShow events

2 Answers 106 Views
SplitView
This is a migrated thread and some comments may be shown as answers.
Maddy
Top achievements
Rank 1
Maddy asked on 03 Jul 2012, 08:16 PM
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 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 05 Jul 2012, 03:20 PM
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.

Greetings,
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!
0
Jack
Top achievements
Rank 2
Iron
answered on 01 Nov 2012, 10:21 AM
Where would you add the data-navigate attribute when the pane is automatically and implicitly created by 
new kendo.mobile.Application?
Tags
SplitView
Asked by
Maddy
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Jack
Top achievements
Rank 2
Iron
Share this question
or