This question is locked. New answers and comments are not allowed.
When I put a treeview inside a panel, I got this error:
Cannot convert lambda expression to type 'string' because it is not a delegate type.
Cannot convert lambda expression to type 'string' because it is not a delegate type.
<% Html.Telerik().PanelBar() .Name("PanelBar") .HtmlAttributes(new { style = "width: 300px; float: left; margin-bottom: 30px;" }) .ExpandMode((PanelBarExpandMode)Enum.Parse(typeof(PanelBarExpandMode), (string)ViewData["expandMode"])) .SelectedIndex(0) .Items(item => { item.Add() .Text("Mail") .Content(() => {Html.Telerik().TreeView() .Name("TreeView") .Items(item => { item.Add() .Text("Mail") .Items(subItem => { subItem.Add() .Text("Personal Folders"); subItem.Add() .Text("Deleted Items"); subItem.Add() .Text("Inbox"); subItem.Add() .Text("My Mail"); subItem.Add() .Text("Sent Items"); subItem.Add() .Text("Outbox"); subItem.Add() .Text("Search Folders"); }); }).Render();}); }) .Render(); %>