Hi,
First off; it's absolutelty GREAT that you've released server wrappers for use with mobile! Up until now, I've made my own "homerolled" asp.net mobile application using javascript and different views with mvc. (Quite the hassle!)
Now, I've finally decided to port it over to your new server wrappers, and that's where I need some help!
I see from your demos that you include a
in all of your examples. What does this layout contain? For me, the examples doesn't really do me much good if I do not know how to setup my layout properly. The reason for my asking is that I have two shared layouts; one for logged in users and one for users that has not logged in yet.
My "_AnonynmousUserLayout.cshtml" (razor) looks like this:
And the @RenderBody() will render the Login page, that at the moment looks like this (until I get the wrappers to work):
When I open the page, nothing is displayed, but if I view the page source (in browser), all the markup including the text is there and produced by the wrappers.
A little help would be appreciated :)
Also, do you have a template for creating a new asp.net mvc mobile project available? Couldn't seem to find one :)
First off; it's absolutelty GREAT that you've released server wrappers for use with mobile! Up until now, I've made my own "homerolled" asp.net mobile application using javascript and different views with mvc. (Quite the hassle!)
Now, I've finally decided to port it over to your new server wrappers, and that's where I need some help!
I see from your demos that you include a
@{
Layout = "~/Areas/razor/Views/Shared/_MobileLayout.cshtml";
}
My "_AnonynmousUserLayout.cshtml" (razor) looks like this:
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
href
=
"~/Content/kendo/2013.2.716/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/Content/kendo/2013.2.716/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"~/Content/kendo/2013.2.716/kendo.mobile.flat.min.css"
/
rel
=
"stylesheet"
>
<
script
src
=
"~/Scripts/kendo/2013.2.716/jquery.min.js"
></
script
>
<
script
src
=
"~/Scripts/kendo/2013.2.716/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
@RenderBody()
</
body
>
</
html
>
@(Html.Kendo().MobileView()
.Name("loginView")
.Title("Stimline Mobile")
.Content(
@<
text
>
<
h2
>New login form goes here</
h2
>
</
text
>
)
)
<!DOCTYPE html>
<
html
>
<
head
>
<
title
></
title
>
<
link
href
=
"/Content/kendo/2013.2.716/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"/Content/kendo/2013.2.716/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"/Content/kendo/2013.2.716/kendo.mobile.flat.min.css"
/
rel
=
"stylesheet"
>
<
script
src
=
"/Scripts/kendo/2013.2.716/jquery.min.js"
></
script
>
<
script
src
=
"/Scripts/kendo/2013.2.716/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
data-reload
=
"false"
data-role
=
"view"
data-stretch
=
"false"
data-title
=
"Stimline Mobile"
data-use-native-scrolling
=
"false"
data-zoom
=
"false"
id
=
"loginView"
><
div
data-role
=
"content"
>
<
h2
>New login form goes here</
h2
>
</
div
></
div
>
</
body
>
</
html
>
Also, do you have a template for creating a new asp.net mvc mobile project available? Couldn't seem to find one :)