This question is locked. New answers and comments are not allowed.
Hello,
what should be added to Visual Studio project to make extensions working? For quick test I've added reference to library and added two helpers (DictionaryExtensions.cs and HtmlHelperExtensions.cs) but when I try to open page I'm getting error:
Index was out of range. Must be non-negative and less than the size of the collection.
in this lines:
My menu source:
I've added to controller "ViewData["expandMode"] = "Single";" too but nothing changed.
Any ideas?
Thanks
what should be added to Visual Studio project to make extensions working? For quick test I've added reference to library and added two helpers (DictionaryExtensions.cs and HtmlHelperExtensions.cs) but when I try to open page I'm getting error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
in this lines:
| Line 168: </div> |
| Line 169: </div> |
| Line 170: <% Html.Telerik().Menu() |
| Line 171: .Name("Menu") |
| Line 172: .HtmlAttributes(new { style = "z-index: 3; position: relative;" }) |
My menu source:
| <% Html.Telerik().Menu() |
| .Name("Menu") |
| .HtmlAttributes(new { style = "z-index: 3; position: relative;" }) |
| .Items(menu => |
| { |
| menu.Add() |
| .Text("ASP.NET MVC") |
| .Items(item => |
| { |
| item.Add().Text("Grid"); |
| }); |
| }) |
| .Render(); |
| %> |
Any ideas?
Thanks