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

rad Menu with XMl document

1 Answer 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Harin Yadav
Top achievements
Rank 2
Harin Yadav asked on 17 Feb 2011, 01:04 PM
HI

i am using radmenu.LoadXML(StrXML) to bind data to my rad menu
StrXML=

"<Items Text=" "><Item Text="My Tracker" Url="#"><Item Text="Add My Menu" Url="Add_MyMenu.asp"/><Item Text="Manage My Menu" Url="Manage_MyMenu.asp"/><Item Text="Tracker Queue" Url="Start.asp"/><Item Text="Edit Profile" Url="edit_profile.asp"/><Item Text="Assign Accounts" Url="assign.asp"/><Item Text="Help" Url="Help.asp"/><Item Text="Report Builder" Url="ReportBuilderMain.asp"/><Item Text="DnB Admin Tool" Url="Insured_admin.asp"/></Item><Item Text="Advantage Reports" Url="AdvAcctsByBroker.asp"></Item></Items>"


this is throwing me error .."Invalid operation exception There is an error in XML document (1, 1)."

Please Help

Thanks
Harin

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 17 Feb 2011, 04:28 PM
Hi Harin Yadav,

You need to apply the structure of the RadMenu as described in this help article. Try changing the string to:
string StrXML= "<Menu><Group><Item Text='My Tracker' Url='#'><Item Text='Add My Menu' Url='Add_MyMenu.asp'/><Item Text='Manage My Menu' Url='Manage_MyMenu.asp'/><Item Text='Tracker Queue' Url='Start.asp'/><Item Text='Edit Profile' Url='edit_profile.asp'/><Item Text='Assign Accounts' Url='assign.asp'/><Item Text='Help' Url='Help.asp'/><Item Text='Report Builder' Url='ReportBuilderMain.asp'/><Item Text='DnB Admin Tool' Url='Insured_admin.asp'/></Item><Item Text='Advantage Reports' Url='AdvAcctsByBroker.asp' /></Group></Menu>";
 
        RadMenu1.LoadXml(StrXML);

Kind regards,
Kate
the Telerik team
Tags
General Discussions
Asked by
Harin Yadav
Top achievements
Rank 2
Answers by
Kate
Telerik team
Share this question
or