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

[Solved] **** URGENT :: XML defination for telerik menu

5 Answers 129 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Test
Top achievements
Rank 1
Test asked on 12 Sep 2009, 06:30 AM
Hi everyone,

i need XML defination for the telerik menu with all the features that xml file support and include like url,group,text...


Its very urgent for me.

thanks

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Sep 2009, 07:04 AM
Hi Mayur,

Go through the following help article which explains how to Load Items from XML.

Thanks
Shinu
0
Test
Top achievements
Rank 1
answered on 12 Sep 2009, 07:52 AM
hi

thanks for reply

but i can't find full features in this article. for ex what is the attribute  name to set url value.

can you please give me an sample XML file which cover everything.

thanks

0
Test
Top achievements
Rank 1
answered on 14 Sep 2009, 05:27 AM
can someone please give me reply ASAP....


Thanks

0
Shinu
Top achievements
Rank 2
answered on 14 Sep 2009, 09:03 AM
Hi Mayur,

Try setting the Href attribute in the XML definition. Here is the sample code.

Menu.XML:
<?xml version="1.0" encoding="utf-8" ?> 
<Menu Skin="Outlook"
    <Group ExpandDirection="Right" Flow="Horizontal"
        <Item Text="Parent" LeftLogo="Img\parent.gif" > 
            <Group Width="140" Flow="Vertical"
                <Item Text="Child 1"  Href="http://www.google.co.in/"  /> 
                <Item IsSeparator="True" /> 
                <Item Text="Child 2" /> 
            </Group> 
        </Item> 
    </Group> 
</Menu> 

CS:
 
  RadMenu1.LoadContentFile("App_Data/menu.xml"); 


Regards
Shinu

0
Yana
Telerik team
answered on 14 Sep 2009, 11:48 AM
Hello Mayur,

The easiest way to find how to set the properties of RadMenu in xml is to build the needed menu declaratively and then use GetXml() method which will return the xml representation of it.

Best wishes,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Menu
Asked by
Test
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Test
Top achievements
Rank 1
Yana
Telerik team
Share this question
or