or
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
script
src
=
"http://code.jquery.com/jquery-1.8.2.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2012.1.322/js/kendo.all.min.js"
></
script
>
<
link
href
=
"http://cdn.kendostatic.com/2012.1.322/styles/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2012.1.322/styles/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2012.1.322/styles/kendo.mobile.all.min.css"
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
div
data-role
=
"view"
data-title
=
"Tag people"
id
=
"popover"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
a
id
=
"back-button"
class
=
"nav-button"
data-align
=
"left"
data-role
=
"backbutton"
>Back</
a
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-align
=
"right"
data-rel
=
"popover"
href
=
"#popover-people"
data-role
=
"button"
>Select people</
a
>
</
div
>
</
div
>
<
div
data-role
=
"content"
>
<
img
src
=
"http://demos.kendoui.com/content/mobile/shared/faces.jpg"
/>
</
div
>
<
div
data-role
=
"popover"
id
=
"popover-people"
data-popup
=
'{"height": 230, "width": 350}'
>
<
div
data-role
=
"view"
data-title
=
"People"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-role
=
"button"
data-align
=
"right"
data-click
=
"closeParentPopover"
>Close</
a
>
</
div
>
</
div
>
<
ul
data-role
=
"listview"
>
<
li
><
label
>Isabella Anderson<
input
type
=
"checkbox"
></
label
></
li
>
<
li
><
label
>Josh Anderson<
input
type
=
"checkbox"
></
label
></
li
>
<
li
><
label
>Linda Anderson<
input
type
=
"checkbox"
></
label
></
li
>
<
li
><
label
>Oliver Anderson<
input
type
=
"checkbox"
></
label
></
li
>
<
li
><
label
>James Williams<
input
type
=
"checkbox"
></
label
></
li
>
<
li
><
label
>Barbara Williams<
input
type
=
"checkbox"
></
label
></
li
>
</
ul
>
</
div
>
</
div
>
<
div
data-role
=
"popover"
id
=
"popover-location"
data-popup
=
'{"height": 140, "width": 350}'
>
<
div
data-role
=
"view"
>
<
ul
data-role
=
"listview"
data-click
=
"closeParentPopover"
>
<
li
><
label
>Sydney, Australia <
input
name
=
"location"
type
=
"radio"
></
label
></
li
>
<
li
><
label
>New York, USA <
input
name
=
"location"
type
=
"radio"
></
label
></
li
>
<
li
><
label
>Miami, USA <
input
name
=
"location"
type
=
"radio"
></
label
></
li
>
</
ul
>
</
div
>
</
div
>
<
div
data-role
=
"footer"
>
<
div
data-role
=
"navbar"
>
<
a
data-align
=
"right"
href
=
"#popover-location"
data-rel
=
"popover"
data-role
=
"button"
>Select location</
a
>
</
div
>
</
div
>
</
div
>
<
style
scoped>
.km-ios #popover .km-view-title,
.km-ios #popover-people .km-view-title
{
color: #fff;
text-shadow: 0 -1px rgba(0,0,0,.5);
}
.km-ios #popover .km-navbar,
.km-root > * > #popover > .km-content
{
background: -webkit-gradient(linear, 50% 0, 50% 100%, color-stop(0, rgba(255, 255, 255, 0.35)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0))) #000;
}
.km-ios #popover .km-navbar .km-button
{
background-color: #000;
}
</
style
>
<
script
>
function closeParentPopover(e) {
var popover = e.sender.element.closest('[data-role=popover]').data('kendoMobilePopOver');
popover.close();
}
</
script
>
<
script
>
var app = new kendo.mobile.Application(document.body);
</
script
>
</
body
>
</
html
>
<%@ Master Language="C#" AutoEventWireup="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
>
[[code removed]]
</
head
>
<
body
>
<
a
href
=
"../index.html"
>Back</
a
>
<
div
data-role
=
"view"
data-layout
=
"overview-layout"
id
=
"overview-content"
data-title
=
"Title"
>
<
form
id
=
"form1"
runat
=
"server"
>
<
ul
data-role
=
"listview"
data-style
=
"inset"
data-type
=
"group"
>
<
li
>
<
ul
>
<
li
>
<
asp:ContentPlaceHolder
ID
=
"mainContent"
runat
=
"server"
>
</
asp:ContentPlaceHolder
>
</
li
>
</
ul
>
</
li
>
</
ul
>
</
form
>
<
div
data-role
=
"popover"
id
=
"popover-people"
data-popup
=
'{"height": 230, "width": 350}'
>
<
div
data-role
=
"view"
data-title
=
"People"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-role
=
"button"
data-align
=
"right"
data-click
=
"closeParentPopover"
>Close</
a
>
</
div
>
</
div
>
<
ul
data-role
=
"listview"
>
<
li
><
a
data-target
=
"_top"
href
=
"default1.aspx"
data-click
=
"closeParentPopover"
>Link 1</
a
></
li
>
<
li
><
a
data-target
=
"_top"
href
=
"default2.aspx"
data-click
=
"closeParentPopover"
>Link 2</
a
></
li
>
<
li
><
a
data-target
=
"_top"
href
=
"default3.aspx"
data-click
=
"closeParentPopover"
>Link 3</
a
></
li
>
<
li
><
a
data-target
=
"_top"
href
=
"default4.aspx"
data-click
=
"closeParentPopover"
>Link 4</
a
></
li
>
<
li
><
a
data-target
=
"_top"
href
=
"default5.aspx"
data-click
=
"closeParentPopover"
>Link 5</
a
></
li
>
<
li
><
a
data-target
=
"_top"
href
=
"default6.aspx"
data-click
=
"closeParentPopover"
>Link 6</
a
></
li
>
</
ul
>
</
div
>
</
div
>
</
div
>
<
div
data-role
=
"layout"
data-id
=
"overview-layout"
>
<
header
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<!--a class="nav-button" data-align="left" data-role="backbutton">Back</a-->
<
span
data-role
=
"view-title"
>Title</
span
>
<
a
data-align
=
"right"
data-rel
=
"popover"
data-role
=
"button"
class
=
"nav-button"
href
=
"#popover-people"
>Login</
a
>
</
div
>
</
header
>
</
div
>
<
script
>
function closeParentPopover(e) {
var popover = e.sender.element.closest('[data-role=popover]').data('kendoMobilePopOver');
popover.close();
}
</
script
>
<
script
>
window.kendoMobileApplication = new kendo.mobile.Application(document.body);
</
script
>
</
body
>
</
html
>
<
div
data-role
=
"popover"
id
=
"popover-locations"
data-popup
=
'{"height": 230, "width": 350}'
>
<
div
data-role
=
"view"
data-title
=
"Clinic Locations"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
data-role
=
"view-title"
></
span
>
<
a
data-role
=
"button"
data-align
=
"right"
data-click
=
"updateSelectedLocation"
>Close</
a
>
</
div
>
</
div
>
<
ul
data-role
=
"listview"
>
@{
var locs = (List<
Location
>) Session["Locations"];
foreach (var l in locs)
{
if (l.IsActive)
{
<
li
><
label
>@l.DisplayText<
input
data-ident
=
"@l.Identifier"
type
=
"checkbox"
checked
=
"checked"
name
=
"chbx-location"
/></
label
></
li
>
}
else
{
<
li
><
label
>@l.DisplayText<
input
data-ident
=
"@l.Identifier"
ype
=
"checkbox"
name
=
"chbx-location"
/></
label
></
li
>
}
}
}
</
ul
>
</
div
>
</
div
>
$(document).ready(
function
() {
// bind the location popover close event to the updateSlectedLocation function.
var
locPopover = $(
'#popover-locations'
);
locPopover.bind(
'close'
, updateSelectedLocation);
});
$
this
.children().each(
function
(i) {
var
$item = $(
"<li><label>"
+ $(
this
).val() +
" <input type=\""
+ (base.multiple ?
"checkbox"
:
"radio"
) +
"\" "
+ (
this
.selected ?
"checked=\"checked\""
:
""
) +
" /></label></li>"
);
listview.prepend($item);
var
that =
this
;
$item.on(
"click"
,
function
() {
console.log(
"test"
);
that.selected =
true
;
$
this
.ButtonCombobox(
"setSelection"
);
})
});
<
div
data-role
=
"view"
> <!-- this would be the view to load the new view -->
<
div
data-role
=
"popover"
>
<
div
data-role
=
"view"
> <!-- this is where it's loaded into -->
<
ul
data-role
=
"listview"
>
<
li
><
a
href
=
"view/TabView.html"
>Tab</
a
></
li
>
</
ul
>
</
div
>
</
div
>
</
div
>
//edit: I noticed the following behavior when playing around with the listview's links:
<li><a data-transition="fade" href="view/TabView.html">inside</a></li> //opens inside the popover
<li><a data-rel="external" data-transition="fade" href="view/TabView.html">ext</a></li> //doesnt open at all on the phone
<li><a data-rel="external" data-transition="fade" href="#view/TabView.html">ext</a></li> //(notice the #) doesnt open at all on the phone but has exactly the desired behavior on the desktop
any suggestions?
<
a
id
=
"popanchor"
data-rel
=
"popover"
href
=
"#popover-task"
data-role
=
"button"
>Open PopOver</
a
>
<
div
data-role
=
"popover"
id
=
"popover-task"
>
<
div
data-role
=
"view"
>
Hi There
</
div
>
</
div
>
kendo.widgetInstance($(href), ui).openFor(link);
kendo.widgetInstance =
function
(element, suite) {
var
widget = suite.roles[element.data(kendo.ns +
"role"
)];
if
(widget) {
return
element.data(
"kendo"
+ widget.fn.options.prefix + widget.fn.options.name);
}
};