This isn't really specific to MobileView but I'm using a MobileView in a partial view that I'm using as a layout template and I want to make the Title dynamic by using ViewBag.Title as the string.
@(Html.Kendo().MobileView()
.Title(ViewBag.Title)
.Name("two-drawer-home")
.Header(obj => Html.Kendo().MobileNavBar().Content(navbar =>
@<
text
>
@(Html.Kendo().MobileButton().Name("btnLeftDrawer").Align(MobileButtonAlign.Left).Rel(MobileButtonRel.Drawer).Url("#left-drawer").ClickOn("down"))
@navbar.ViewTitle("Hello there")
@(Html.Kendo().MobileButton().Name("btnRightDrawer").Align(MobileButtonAlign.Right).Rel(MobileButtonRel.Drawer).Url("#right-drawer").ClickOn("down"))
</
text
>)
.HtmlAttributes(new { style = "height: 46px;" })
)
.Content(@<
text
>@RenderBody()</
text
>)
)
But this isn't valid. I've also tried @ViewBag.Title and various other incarnations. I'm wondering if this type of thing is possible in the Title of the MVC controls.