This question is locked. New answers and comments are not allowed.
Can i put treeview code into master page? i put the code below into Site.master page, but it didn't work. I can't expand tree node.
| <% Html.Telerik().TreeView() |
| .Name("TreeView") |
| .Items(items => |
| { |
| items.Add().Text("Item 1").Items(subItem=> |
| { |
| subItem.Add().Text("subItem1").Url("http://www.google.com.") ; |
| }); |
| items.Add().Text("Item 2").Url("http://www.baidu.com").HtmlAttributes(new { alt = "Baidu" }); |
| items.Add().Text("Item 3"); |
| }) |
| .Render() ; |
| %> |
Is it possible to do this? i don't want to put these codes in each of view page and i am really breaking my head.
Hope someone can help me, thanks.