Hi,
I'd like to report a few possible issues with the asp.net mobile framework. I'm saying possible, as I'm not sure if my application is setup completely correctly.
I'd like to report a few possible issues with the asp.net mobile framework. I'm saying possible, as I'm not sure if my application is setup completely correctly.
- Whenever my .ServerNavigation is set to true, the transitions between views (i.e. "fade") stops working. It just flicks between pages without any effect.
- I'm trying to implement a drawer in one of my views, but this does not seem to work either when the .ServerNavigation is set to false. It seems to duplicate my url, so that the application does not quite understand where to navigate. I.e. when ServerNavigation is set to true, my links look like the following: "http://localhost/Stimline.Xplorer.Mobile/UnitDetails/Index/1#/". Both the drawer and "back" button seems to work correctly with this in place. Now, if i change my ServerNavigation to false, the link will look like the followng after presssing the "back" button once and navigate back to the view again with a link: "http://localhost/Stimline.Xplorer.Mobile/UnitDetails/Index/1#/Stimline.Xplorer.Mobile/UnitDetails/Index/1". As a result of this, both my drawer and "back" button stops working.
Here's my MobileApplication() as defined in my shared _Layout.cshtml:
And here's my "drawer" layout:
@(Html.Kendo().MobileApplication()
.ServerNavigation(false)
.Transition("fade")
.HideAddressBar(true)
.Skin("flat")
)
@(Html.Kendo().MobileLayout()
.Name("drawer-layout")
.Header(obj =>
Html.Kendo().MobileNavBar()
.Content(navbar =>
@<
text
>
@(Html.Kendo().MobileButton()
.Align(MobileButtonAlign.Left)
.Icon("drawer-button")
.Rel(MobileButtonRel.Drawer)
.Url("#my-drawer")
)
@navbar.ViewTitle("")
@(Html.Kendo().MobileButton()
.Align(MobileButtonAlign.Right)
.Text("Back")
.HtmlAttributes(new { @class = "nav-button" })
.Url(Url.RouteUrl(new { controller = "home" }))
)
</
text
>)
)
)