or
@(Html.Kendo().Menu()
.Name("menuUser")
.OpenOnClick(true)
.Items(items =>
{
items.Add().Text(User.Identity.Name)
.Content(@<
text
>
<
table
>
<
tr
>
<
td
style
=
"vertical-align: top;"
><
img
src
=
"~/Images/icon_no_photo_no_border_60x60.png"
alt
=
""
/></
td
>
<
td
>
<
div
class
=
"header_sub_menu"
>
<
h2
>@ViewBag.AppContext.UserDisplayName</
h2
>
<
h3
>@ViewBag.AppContext.UserPrimaryEmail</
h3
>
<
hr
/>
<
ol
>
<
li
>@Html.ActionLink("Settings", "Index", "Home", new { area = "Settings" }, null)</
li
>
<
li
>@Html.ActionLink("Log off", "LogOff", "Account", new { area = "" }, null)</
li
>
</
ol
>
</
div
>
</
td
>
</
tr
>
</
table
>
</
text
>);
})
)
[
{ "Nom": "Test", "Pays": "FR", "Adresse1": "Rue du test", "CP": "59000" }
]
var
dataSource =
new
kendo.data.DataSource({
transport: {
read: {
url:
"./data.json"
,
dataType:
"json"
},
}
});
$(
"#PointRelaisList"
).kendoMobileListView({
dataSource: dataSource,
template: $(
"#PointRelaisListTemplate"
).text()
});
<script id=
"PointRelaisListTemplate"
type=
"text/x-kendo-template"
>
<span class=
"PointRelaisImage"
style=
"background-image: url('http://www.mondialrelay.fr/img/dynamique/pr.aspx?id=#: Pays ##: kendo.toString(ID, '0000000') #')"
></span>
<div class=
"PR-Name"
>
#: Nom #
<span class=
"value"
>(0.2 km)
<a class=
"button"
data-role=
"button"
href=
"\#DetailPointRelais?Id=#: Pays ##: kendo.toString(ID, '0000000') #&Nom=#: Nom #"
data-icon=
"info"
style=
"font-size:10px;background-color:\#7184a2"
></a>
<a class=
"button"
data-role=
"button"
data-context=
"#:ID#"
data-click=
"setFavorite"
data-icon=
"toprated"
style=
"font-size:10px;background-color:\#7184a2"
></a>
</span>
</div>
<div class=
"PR-Adress"
>
#: Adresse1 #
<br/>
#: Pays # - #: CP # #: Ville #
</div>
</script>
<
div
data-role
=
"scroller"
class
=
"scroller-content"
>
<
ul
data-role
=
"listview"
data-style
=
"inset"
class
=
"MRW-Results"
id
=
"PointRelaisList"
data-template
=
"PointRelaisListTemplate"
>
</
ul
>
</
div
>