In the documentation it says if the views of a mobiledrawer is omitted then the drawer will work on all views.
I have a MobileDrawer setup on my _Layout.cshtml like so:
However if I remove the Views() method I get an null exception? I expected it to just work on any page.
Thanks
I have a MobileDrawer setup on my _Layout.cshtml like so:
@(Html.Kendo().MobileDrawer()
.Name("main-menu")
.HtmlAttributes(new { style = "width: 210px" })
.Title("Mobile App")
.Views("Index")
.Content(obj =>
Html.Kendo().MobileListView()
.Items(root =>
{
root.AddLink().Icon("inbox").Url("Index", "Outage").Text("Report New Outage");
root.AddLink().Icon("inbox").Url("About", "Home").Text("About");
})
)
)
However if I remove the Views() method I get an null exception? I expected it to just work on any page.
Thanks