O'Reilly logo

Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API by Ragini Kumbhat Bhandari, Nishanth Nair

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

init and show events of the View widget

The Kendo UI Mobile View widget exposes two important events: init and show. Event handlers for these events can be wired using data attributes as shown:

<div data-role="view" data-init="onInitialize" 
data-show="onShow">
</div>

<script>
  var app = new kendo.mobile.Application(document.body);
  
  function onInitialize(e) {
    alert('view initialized');
  }
  
  function onShow(e) {
    alert('view shown');
  }
  
</script>

The init event is fired first and only once, after the View and its child widgets are initialized. The show event is fired whenever the view becomes visible. The init event is designed to be used for actions which should be done only once during the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required