6 Answers, 1 is accepted
0
Hi Justin,
The data-init will fire once, after the view and its child widgets are initialized, while the data-show will fire every time when the view becomes visible.
The init event is suitable for actions that should be done only once, right after the initialization of the view (for example - creating a widget). The show event is appropriate for a code that you want to be executed after each show of the view.
For convenience I prepared a small example that shows the event usage in action.
Greetings,
Alexander Valchev
the Telerik team
The data-init will fire once, after the view and its child widgets are initialized, while the data-show will fire every time when the view becomes visible.
The init event is suitable for actions that should be done only once, right after the initialization of the view (for example - creating a widget). The show event is appropriate for a code that you want to be executed after each show of the view.
For convenience I prepared a small example that shows the event usage in action.
Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Justin
Top achievements
Rank 1
answered on 30 May 2012, 02:58 PM
Thanks for the reply,
my question was in response to not having access to the e.view.params from the data-init event while i do have access to e.view.params from from the data-show event. Is this the correct behavior?
my question was in response to not having access to the e.view.params from the data-init event while i do have access to e.view.params from from the data-show event. Is this the correct behavior?
0
Hi,
Petyo
the Telerik team
Yes, this is the expected behavior, as described in our documentation.
Kind 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!
0

Abdul Hannan
Top achievements
Rank 1
answered on 11 Dec 2013, 11:05 AM
Note that data-show executes every time you call alert( ) , Phonegap's notification.confirm ( ) and notification.alert ( ) on a mobile device. This is a very strange behaviour
0
Hello Abdul,
Indeed it is - we have not received reports of such behavior so far. Is it possible for you to open a ticket with a a sample that reproduces it? We will take a look.
Regards,
Petyo
Telerik
Indeed it is - we have not received reports of such behavior so far. Is it possible for you to open a ticket with a a sample that reproduces it? We will take a look.
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Abdul Hannan
Top achievements
Rank 1
answered on 12 Dec 2013, 06:39 AM
Yes Petyo, I have raised this issue via Telerik Support. Please Search for "Method Bonded with data-show executes every time alert ( ) function is called " and you will find the code to reproduce the problem,
Thanks
Thanks