Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4110
WebDataMenu-SubMenu Items disappear
posted

I have a WebDataMenu that is initially loaded on Page Load, but not for postbacks. The problem is that when I hover over a parent menu and the submenu items are displayed, moving the mouse down to select a submenu item causes them to disappear. Generally, I get one or two parent menus that will work properly, but the rest will hide the submenu list when I try to select something. It isn't always the same one, that part seems to be random. only by clicking repeatedly on the parent menu will the submenu finally stay put so something can be slected. I am using VS2008SP2, Infragistics 3.5 10.3.20103.2134. I cannot upgrade controls at this time and must make this work before 10/1 launch date. Any suggestions?

  • 4110
    posted in reply to [Infragistics] Surya

    These are stripped down to the relevant code. I have to build these dynamically from the dataset due to requirements, I cannot use an SQLAdapter or OLEDBAdapter.

    <%@ Master Language="VB"  EnableViewState="true" CodeFile="Master.master.vb" Inherits="Master"  %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>AOD Data Express</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        </asp:ScriptManager>

     </form>
    </body>           
     <asp:Panel ID="pnlTopMenu" runat="server" BorderStyle="Solid" BorderWidth="1" Width="100%" >
      <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="block" UpdateMode="Conditional">
       <ContentTemplate>
        <asp:Table ID="tblUser" runat="server" Font-Size="small" Width="100%">
         <asp:TableHeaderRow>
          <asp:TableHeaderCell HorizontalAlign="Center" Width="125px" Wrap="false">
           <asp:Label ID="lblUser" runat="server" Font-Size="small"
            Text="" ToolTip="UserID" Width="135px" ></asp:Label>
          </asp:TableHeaderCell>
          <asp:TableHeaderCell HorizontalAlign="Center" Width="75px" Wrap="false" Visible="false">
           <asp:Label ID="lblLocation" runat="server" Font-Size="small" Text=""
            ToolTip="User Location" Width="75px"></asp:Label>
          </asp:TableHeaderCell>
          <asp:TableCell Width="100%" Style="background-image: url(ig_res/claymation/images/igdm_controlbackground.png);">
           <ig:WebDataMenu ID="igMenu" runat="server" EnableScrolling="false"
            DataMember="TITLE" EnableTheming="true" MaxDataBindDepth="1"
            StyleSetPath="~/ig_res/" StyleSetName="Claymation" Height="25px">
              <GroupSettings Orientation="Horizontal" />
              <DataBindings>
            <ig:DataMenuItemBinding DataMember="TITLE" DefaultText=" " TextField="TITLE" ToolTipField="TITLE" />
              </DataBindings>
           </ig:WebDataMenu>
          </asp:TableCell>
         </asp:TableHeaderRow>
        </asp:Table>
       </ContentTemplate>
      </asp:UpdatePanel>
     </asp:Panel>
     <asp:Table ID="tblMain" runat="server" Width="100%">
     <asp:TableRow>
      <asp:TableCell Width="25px">&nbsp;</asp:TableCell>
      <asp:TableCell VerticalAlign="top">
       <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
       </asp:ContentPlaceHolder>
      </asp:TableCell>
     </asp:TableRow>
    </asp:Table>

    Imports BaseMethods
    Imports System.Data
    Imports System.Data.SqlClient
    Imports Infragistics.Web.UI.NavigationControls


    Partial Class Master
        Inherits System.Web.UI.MasterPage

     
    End Class

    #Region "Page Methods"

        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Try
                LoadUserInfo()
                If Not IsPostBack Then
                    Response.Cache.SetNoServerCaching()
                    Response.Cache.SetCacheability(HttpCacheability.NoCache)
                    ClearCache()
                    LoadMenu()
                End If
             Catch ex As Exception

            End Try
        End Sub

        Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
            Try
                igTree.Width = Unit.Pixel(180)
                SetAutoHeight()
                pnlHomeButton.Width = igTree.Width
            Catch ex As Exception

            End Try

        End Sub

    #End Region

    #Region "Local Methods"

        Private Sub LoadMenu()
            Dim Profile() As String = GetUserProfile(GetUser(Page.User.Identity.Name))
            Dim cnt As Int64 = 0
            Dim cnt1 As Int64 = 0
            Dim cNode As DataTreeNode = Nothing
            Dim ds As DataSet = Nothing
            Dim choice As String = String.Empty

            Try
                choice = "usermenulevel2"
                ds = GetDataSet(choice, Profile)
                'build menu: Set Parent Menus, then add child items to appropriate parent
                If IsDatasetValid(ds) Then
                    SetMenuParent(Profile)
                    SetMenuChild(Profile)
                End If


            Catch ex As Exception

            End Try
        End Sub

        Private Sub LoadUserInfo()
            Try
                'Loads the Users Name and Location to lblUser.Text & lblLocation.Text
            Catch ex As Exception

            End Try

        End Sub

    #End Region

  • 7499
    posted

    Hello Dbishop9,

    Can you please provide me the markup and codebehind for the WebDataMenu?

  • 7499
    posted

    Dear Dbishop,

    Thank you for contacting Infragistics!

    We received your support request concerning WebDataMenu-SubMenu Items disappear issue, and this case has been assigned to me. Infragistics is dedicated to help you.

    I am looking into this issue and will get back to you before the end of the day Friday with more information or questions for you.

    Sincerely,

    Prabha

    Developer Support Engineer

    Infragistics,Inc

    www.infragistics.com/support