This question is locked. New answers and comments are not allowed.
I started with the binding example where there was a selected index, got an exception raised. Since I wanted a simple example I tried it with a different example provided and it failed here as well. Perhaps I am missing a setting, but if I used the SelectedIndex( XX ) it will raise an exception of:
Index was out of range. Must be non-negative and less than the size of the collection.
which makes sense as the menu isn't even populated when this is executed so it would be a valid error.
Html.Telerik().Menu()
.Name("Menu")
.SelectedIndex(1)
.Orientation(MenuOrientation.Vertical)
.Items(items =>
{
items.Add().Text("Item 1");
items.Add().Text("Item 2");
})
.Render();
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
which makes sense as the menu isn't even populated when this is executed so it would be a valid error.
Html.Telerik().Menu()
.Name("Menu")
.SelectedIndex(1)
.Orientation(MenuOrientation.Vertical)
.Items(items =>
{
items.Add().Text("Item 1");
items.Add().Text("Item 2");
})
.Render();