This question is locked. New answers and comments are not allowed.
Has anyone attempted this? I've placed the TreeView code inside of a hidden div? I can get the tree to display inside of the div, but nothing is clickable, or expandable. I'm not getting any javascript errors either, which would usually be the culprit for a problem with the tree not being clickable.
From my aspx:
| <div id="test" title="Test Tree in Dialog" style="display:none"> |
| <%= Html.Telerik().TreeView() |
| .Name("testTree") |
| .ClientEvents(events => events |
| .OnSelect("onSelectTree") |
| .OnLoad("onLoadTree") |
| ) |
| .BindTo(Model, mappings => mappings.For<TreeNodeModel<EntityType>> |
| (binding => binding.ItemDataBound((item, treeItem) => |
| { |
| item.Text = treeItem.NodeInfo.Name; |
| item.Value = treeItem.NodeInfo.Id.ToString(); |
| item.Expanded = true; |
| }) |
| .Children(treeItem => treeItem.Children))) |
| %> |
| </div> |
I'm then showing the dialog with something similar to:
| <script type="text/javascript"> |
| $(function() { |
| $("#testTree").dialog(); |
| }); |
| </script> |
Again, the tree displays in the dialog, but isn't usable. Any ideas?