Hi everyone !
To begin, thank you to Team Kendo UI framework for this First, thank you to Team KendoUI framework for this really powerful.
I am facing a problems for viewShow, even with the different possibilities of use:
Here are the different ways that I used to use viewShow, and nothing appears in the event console
Someone can explain me why i encounter this problem ?
Thanks,
Tyler
To begin, thank you to Team Kendo UI framework for this First, thank you to Team KendoUI framework for this really powerful.
I am facing a problems for viewShow, even with the different possibilities of use:
Here are the different ways that I used to use viewShow, and nothing appears in the event console
var app = new kendo.mobile.Application(document.body, { transition: "slide", hideAddressBar: true });app.bind("viewShow", function(e) { console.log(e); });ORvar app = new kendo.mobile.Application(document.body, { transition: "slide", hideAddressBar: true, viewShow: function (e) { console.log(e); } });Someone can explain me why i encounter this problem ?
Thanks,
Tyler
5 Answers, 1 is accepted
0
Tyler
Top achievements
Rank 1
answered on 23 Mar 2012, 04:46 PM
No longer supported....
Sorry.
Sorry.
0
Hi,
The Application viewShow event was present in the first mobile beta, but was dropped afterwards. Now each view exposes a show event, instead. You can bind to it using a data attribute - something like
Kind regards,
Petyo
the Telerik team
The Application viewShow event was present in the first mobile beta, but was dropped afterwards. Now each view exposes a show event, instead. You can bind to it using a data attribute - something like
<div data-role="view" data-show="foo"> ...
<script>function foo() {}</script>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
Shawn R.
Top achievements
Rank 1
answered on 24 Mar 2012, 01:27 PM
viewShow used to fire on EVERY view - and my app was programmed as such. It appears as though data-show only fires the first time the view is shown. I need the original behavior. Am I correct in this change, was it intended as such and can you think of a workaround?
Thanks - Shawn
Thanks - Shawn
0
Hello,
I can't reproduce the behavior where data-show is executed only the first time when the view is shown; see this fiddle (click several times on Foo/Bar with the developer tools open).
Another thing that may come in handy in your case would be the layout init/show events - this would work if your views share a common layout.
Kind regards,
Petyo
the Telerik team
I can't reproduce the behavior where data-show is executed only the first time when the view is shown; see this fiddle (click several times on Foo/Bar with the developer tools open).
Another thing that may come in handy in your case would be the layout init/show events - this would work if your views share a common layout.
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
Tyler
Top achievements
Rank 1
answered on 26 Mar 2012, 08:45 AM
For me, it's working !
Thanks for support !
Thanks for support !