Hi,
I am using webdatamenu with a WebHierarchicalDataSource. The problem I am having is that when I hover my mouse over the menu it doesn't expand to show the submenus.It works when using ultrawebtree.
Thanks
I have the following datafill.
SqlDataSource1.DataBind()SqlDataSource2.DataBind()dvPortalMainMenu = New Infragistics.Web.UI.DataSourceControls.DataView()dvPortalMainMenu.DataSourceID = SqlDataSource1.IDdvPortalMainMenu.ID = "dvPortalMainMenu"WebHierarchicalDataSource1.DataViews.Add(dvPortalMainMenu) dvPortalNodeType = New Infragistics.Web.UI.DataSourceControls.DataView()dvPortalNodeType.DataSourceID = SqlDataSource2.IDdvPortalNodeType.ID = "dvPortalNodeType"WebHierarchicalDataSource1.DataViews.Add(dvPortalNodeType) drPortalNodeType = New Infragistics.Web.UI.DataSourceControls.DataRelationdrPortalNodeType.ParentDataViewID = "dvPortalMainMenu"drPortalNodeType.ParentColumns = New String() {"MenuId"}drPortalNodeType.ChildDataViewID = "dvPortalNodeType"drPortalNodeType.ChildColumns = New String() {"Parent_MenuId"}WebHierarchicalDataSource1.DataRelations.Add(drPortalNodeType)WebHierarchicalDataSource1.DataBind()WebDataMenu1.DataSource = WebHierarchicalDataSource1WebDataMenu1.GroupSettings.Orientation = Infragistics.Web.UI.NavigationControls.Orientation.HorizontalWebDataMenu1.ActivateOnHover = "True"menubind = New Infragistics.Web.UI.NavigationControls.DataMenuItemBinding()menubind.TextField = "MenuName"menubind.ValueField = "MenuName"menubind.DataMember = "dvPortalMainMenu"WebDataMenu1.DataBindings.Add(menubind) menubind = New Infragistics.Web.UI.NavigationControls.DataMenuItemBinding()menubind.TextField = "MenuName"menubind.ValueField = "MenuName"menubind.DataMember = "dvPortalNodeType"WebDataMenu1.DataBindings.Add(menubind)WebDataMenu1.DataBind()
This can be closed. It was being caused by interference from the master page.
This is my source code. I went back to configuring everything
through controls instead of from the code.
The toplevel menu items show up fine. I can't get to
display the second level menu. When I hover my mouse on the
menu item it doesn't expand the second level menu.
Is something incorrect in my
configuration.
Thameez
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/MasterPage_Ericsson2011Level2.master" AutoEventWireup="true" CodeFile="Portal.aspx.vb" Inherits="MyNetwork_Portal" %> <%@ Register Assembly="Infragistics4.Web.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.NavigationControls" TagPrefix="ig" %> <%@ Register Assembly="Infragistics4.Web.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" Namespace="Infragistics.Web.UI.DataSourceControls" TagPrefix="ig" %> <%@ Register assembly="Infragistics4.WebUI.UltraWebNavigator.v10.3, Version=10.3.20103.1013, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" namespace="Infragistics.WebUI.UltraWebNavigator" tagprefix="ignav" %> <asp:Content ID="Content1" ContentPlaceHolderID="BreadCrumb"
Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainBodyContent"
Runat="Server"> <link href="sampleWebDataMenu.css" rel="stylesheet" type="text/css" /> <style type="text/css"> .controlSpacing { position: relative; top: 25px; } </style> <div style="width: 1000px; height: 250px"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="somestring" SelectCommand="SELECT * FROM [Portal_Main_Menu]"></asp:SqlDataSource> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<somestring>" SelectCommand="SELECT * FROM [Portal_NodeType_Menu]">
</asp:SqlDataSource> <ig:WebDataMenu ID="WebDataMenu1" runat="server"
EnableScrolling="False" DataSourceID="WebHierarchicalDataSource1" Width="100%" > <GroupSettings Orientation="Horizontal" /> <GroupSettings Orientation="Horizontal"></GroupSettings> <DataBindings> <ig:DataMenuItemBinding
DataMember="SqlDataSource1_DefaultView"
TextField="MenuName" ValueField="MenuId" /> <ig:DataMenuItemBinding
DataMember="SqlDataSource2_DefaultView"
TextField="MenuName" ValueField="MenuId" /> </DataBindings> </ig:WebDataMenu> <ig:WebHierarchicalDataSource ID="WebHierarchicalDataSource1" runat="server" > <DataViews> <ig:DataView ID="SqlDataSource1_DefaultView"
DataMember="DefaultView" DataSourceID="SqlDataSource1" /> <ig:DataView ID="SqlDataSource2_DefaultView"
DataMember="DefaultView" DataSourceID="SqlDataSource2" /> </DataViews> <DataRelations> <ig:DataRelation ChildColumns="Parent_MenuId" ChildDataViewID="SqlDataSource2_DefaultView"
ParentColumns="MenuId" ParentDataViewID="SqlDataSource1_DefaultView" /> </DataRelations> </ig:WebHierarchicalDataSource> </div> </asp:Content>