Kendo ModalView - open programatically
by kendomobile
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.2.716/styles/kendo.mobile.all.min.css">
<script src=" http://cdn.kendostatic.com/2013.2.716/js/kendo.all.min.js"></script>
<!-- Demo created for the book: Building Mobile Applications Using Kendo UI Mobile andASP.NET Web API.
http://www.packtpub.com/building-mobile-applications-with-kendoui-html5/book -->
<div data-role="view">
<a
data-click="openModalView"
data-role="button">
Open Modal View
</a>
</div>
<div data-role="modalview"
data-height="300px"
data-width="300px"
id="myModalView">
<h2> I am a modal view... </h2>
</div>
JavaScript
var app = new kendo.mobile.Application(document.body);
function openModalView(e) {
$("#myModalView").data("kendoMobileModalView").open();
}