This question is locked. New answers and comments are not allowed.
I wrote the code below:
I expect that when I click "subItem1" I can navigate to my controller action, and when I click "Item 2" I can navigate to website http://www.baidu.com.
Item2 responsed exactly what i thought, but subItem1 even didn't appear in the browser. Is there something wrong with my code? or how can I implement that ?
| <%= Html.Telerik().TreeView() |
| .Name("TreeView") |
| .Items(items => |
| { |
| items.Add().Text("Item 1").Items(subItem=> |
| { |
| subItem.Add().Text("subItem1").Action("Create", "Contact") ; |
| }); |
| items.Add().Text("Item 2").Url("http://www.baidu.com").HtmlAttributes(new { alt = "Baidu" }); |
| items.Add().Text("Item 3"); |
| }) |
| %> |
I expect that when I click "subItem1" I can navigate to my controller action, and when I click "Item 2" I can navigate to website http://www.baidu.com.
Item2 responsed exactly what i thought, but subItem1 even didn't appear in the browser. Is there something wrong with my code? or how can I implement that ?