Context Menu with xml File

5 posts, 0 answers
  1. Yolanda
    Yolanda avatar
    3 posts
    Member since:
    May 2008

    Posted 15 Apr 2009 Link to this post

    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
  2. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 17 Apr 2009 Link to this post

    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.
  3. Yolanda
    Yolanda avatar
    3 posts
    Member since:
    May 2008

    Posted 20 Apr 2009 Link to this post

    Thanks for you reply.

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

    Thanks
        
  4. Minesh
    Minesh avatar
    7 posts
    Member since:
    Apr 2007

    Posted 22 Apr 2009 Link to this post

    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,



  5. Yolanda
    Yolanda avatar
    3 posts
    Member since:
    May 2008

    Posted 22 Apr 2009 Link to this post

    Hi,

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

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



Back to Top