|
Rank: Newbie Groups: Member
Joined: 3/11/2010 Posts: 2
|
Hi, I did not find anything like this in the documentation. We are using ASP.NET menucontrol and binding with XMLDatasource. In the XML Datasource we are passing XQuery which selects the the necessary menu items tio be selected. So, if I use EO menu control, is it possible to do? Regards, Dib
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
I believe EO Menu should work the same on this regard.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 3/11/2010 Posts: 2
|
My XML structure is like following:
<?xml version="1.0" encoding="utf-8" ?> <Items Text=""> <language name="en"> <item role="rait" Text="Create Presentation" Url="~/CreatePresentation.aspx" Type="VIS" Value="1" /> <item role="rait" Text="Edit Instrumentation" Url="~/EditInstrumentation.aspx" Type="VI" Value="2" /> <item role="rait" Text="Impact" Url="~/Impact.aspx" Type="I" Value="3"/> <item role="rait" Text="Panel" Url="~/Panel.aspx" Type="S" Value="4"/> <item role="rait" Text="Laboratory Information System" Url="~/LIS.aspx" Type="S" Value="5"/> <item role="rait" Text="Usage Sheet" Url="" Type="V" Value="6"/> <item role="rait" Text="Report OutPut" Url="~/ProofOutPut.aspx" Type="VIS" Value="7"/>
<item role="ra" Text="Create Presentation" Url="~/CreatePresentation.aspx" Type="V" Value="1"/> <item role="ra" Text="Edit Instrumentation" Url="~/EditInstrumentation.aspx" Type="V" Value="2"/> <item role="ra" Text="Usage Sheet" Url="~/UsageSheet.aspx" Type="V" Value="6"/> <item role="ra" Text="Report OutPut" Url="~/ProofOutPut.aspx" Type="V" Value="7"/>
<item role="it" Text="Create Presentation" Url="~/CreatePresentation.aspx" Type="VIS" Value="1" /> <item role="it" Text="Edit Instrumentation" Url="~/EditInstrumentation.aspx" Type="VI" Value="2" /> <item role="it" Text="Impact" Url="~/Impact.aspx" Type="I" Value="3"/> <item role="it" Text="Panel" Url="~/Panel.aspx" Type="S" Value="4"/> <item role="it" Text="Laboratory Information System" Url="~/LIS.aspx" Type="S" Value="5" /> <item role="it" Text="Usage Sheet" Url="~/UsageSheet.aspx" Type="V" Value="6"/> <item role="it" Text="Report OutPut" Url="~/ProofOutPut.aspx" Type="VIS" Value="7"/>
<item role="i" Text="Create Presentation" Url="~/CreatePresentation.aspx" Type="VI" Value="1" /> <item role="i" Text="Edit Instrumentation" Url="~/EditInstrumentation.aspx" Type="VI" Value="2" /> <item role="i" Text="Impact" Url="~/Impact.aspx" Type="I" Value="3"/> <item role="i" Text="Usage Sheet" Url="~/UsageSheet.aspx" Type="V" Value="6"/> <item role="i" Text="Report OutPut" Url="~/ProofOutPut.aspx" Type="VI" Value="7"/> </language> </Items>
I want to bind the Text and Url with Menu through XMLDataSource. But it the menu says: item.
Please provide me the syntax. I have tried with the syntax in the help file but its not working for me.
Regards, Dib
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, The menu only recognizes a certain attribute names ("title" for menu text, "url" for navigate Url, case sensitive). In case your attribute name is different, you will need to use DataBinding object to explicitly define the mapping between your XML attribute and the menu property. You can see more information about that here: http://doc.essentialobjects.com/library/1/menucommon/databinding/populate_datasource.aspxIn order to avoid abuse, we do not do "please provide me the syntax" or similar kind of support (for example, "please provide the code that does this"). If you believe you have tried certain syntax according to the help file but it is not working, please post detailed information such as what you have tried and the help file/page that you used as a reference. Once we look into that we should be able to tell you how to correct the issue. Thanks!
|
|