This is a migrated thread and some comments may be shown as answers.

Context Menu with xml File

4 Answers 121 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yolanda
Top achievements
Rank 1
Yolanda asked on 15 Apr 2009, 06:55 PM
HI,

We use a Telerick.WebControls.RadTreeview, with context menu load with a xml file but in Telerik.Web.UI.RadTreeView don`t find this funcionality this is the code used:

<

radt:RadTreeView ID="MenuArbol" runat="server"

 

 

ContextMenuContentFile="treeContextMenus.xml" Height="100%" ImagesBaseDir="~/Images/MenuArbol/"

 

 

LicenseFile="~/Menu/MenuArbol/RadControls/LicenseFile.xml"

 

 

RadControlsDir="~/Menu/MenuArbol/RadControls/" Skin="ExampleSkins/ContextMenu"

 

 

SkinsPath="~/Menu/MenuArbol/RadControls/TreeView/Skins" Width="100%"

 

 

OnNodeContextClick="MenuArbol_NodeContextClick"

 

 

OnNodeExpand="MenuArbol_NodeExpand"

 

 

LoadingMessage="(cargando ...)" AutoPostBack="True" OnNodeClick="MenuArbol_NodeClick" AppendDataBoundNodes="True" >

 

 

</radt:RadTreeView>

 


This treeview donĀ“t appear in the web server but appear in developer machine.

Please help us to resolve this.

Thanks

4 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 17 Apr 2009, 09:45 AM
Hello,

You may use the LoadContentFile method of RadContextMenu. Please refer to the following help topic for more details:

http://www.telerik.com/help/aspnet-ajax/context-menu-xml-file.html

Hope this helps.

Regards,
Helen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Yolanda
Top achievements
Rank 1
answered on 20 Apr 2009, 05:27 PM
Thanks for you reply.

    I have 10 context menues, Need I a one xmlFile for each RadContextMenu?? I do 10 xmlFile...

Thanks
    
0
Minesh
Top achievements
Rank 1
answered on 22 Apr 2009, 11:22 AM
Hi,

 I got the error when i used contextmenu with xml file in treeview control.

i got error like <ContextMenus xmlns=''> was not expected.
i have taken contextmenu like.
<ContextMenus>
  <Menu ID="Mail" Width="140">
        <Item  Text="A" PostBack="True" />
        <Item  Text="B" PostBack="True" />       
    </Menu>
  <Menu ID="Mai2" Width="140">
    <Item  Text="C" PostBack="True" />
  </Menu>
</ContextMenus>

Would you please guide me what is going wrong with me.

Thanking You,



0
Yolanda
Top achievements
Rank 1
answered on 22 Apr 2009, 09:25 PM
Hi,

Use that: Please refer to the following help topic for more details:

http://www.telerik.com/help/aspnet-ajax/menu_itemsxml.html



Tags
TreeView
Asked by
Yolanda
Top achievements
Rank 1
Answers by
Helen
Telerik team
Yolanda
Top achievements
Rank 1
Minesh
Top achievements
Rank 1
Share this question
or