Hello
According to the API available, it is possible to load the content file and the context menus dynamically by setting the following properties
· ContentFile
· ContextMenuContentFile
For e.g.
ContentFile="~/Examples/Programming/ContextMenu/tree.xml"
ContextMenuContentFile="~/Examples/Programming/ContextMenu/ContextMenus.xml"
But we are unable to find the properties in the TreeView control (please see the snapshot below)
Moreover we are able to load the ContentFile dynamically, using the LoadContentFile method as shown below; but the corresponding
LoadContextMenusXmlString is not available (Please see the snapshot below)
We have the following version
Telerik.Web.UI.dll 2009.1.311.35
|
Name: |
Telerik.Web.UI.RadTreeView |
|
Assembly: |
Telerik.Web.UI, Version=2009.1.311.35 |
Please let me know if you need to more information.
Regards,
Abhishek
| System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("var workImage = getRadWindow().ClientParameters;"); sb.Append(String.Format("workImage.src = '{0}{1}';", GetMediaRootWebPath(), SelectedMediaContent.UrlPrimary)); sb.Append(String.Format("workImage.altText = '{0}';", SelectedMediaContent.AltText)); sb.Append("getRadWindow().close(workImage);"); this.Page.ClientScript.RegisterStartupScript(this.GetType(), "ReturnImage", sb.ToString(), true); |

<
telerik:RadMenu runat="server" ID="RadMenu1" Style="float: none; left: 0px; height: 20px;"
OnItemClick="RadMenu1_ItemClick" Skin="Simple">
<Items>
<telerik:RadMenuItem Text="HR">
<Items>
<telerik:RadMenuItem Text="HR Clerical Functons">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="HR Manager Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Reports">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Users">
<Items>
<telerik:RadMenuItem Text="Regular Users Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Regular User Supervisor Functions">
</telerik:RadMenuItem>
<telerik:RadMenuItem Text="Reports">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>