Hi,
I have placed Webdatamenu in sample_user.ascx(userControl). I am calling sample_user.ascx control in Header.Master. Included Master page "Header.Master" in Sample.aspx. WebDataMenu is not displaying in IE78 and IE9. It is working in Firefox, Chorme and Safari. If I place WebDataMenu direclty in Sample.aspx page, it is working fine.
Can you help me on this.
Sample.ascx
<ig:WebDataMenu ID="WebDataMenu1" runat="server">
<GroupSettings Orientation="Horizontal" />
<Items>
<ig:DataMenuItem Text="New">
<ig:DataMenuItem Text="Agreement">
</ig:DataMenuItem>
<ig:DataMenuItem Text="Child Item">
</Items>
<ig:DataMenuItem Text="Search">
</ig:WebDataMenu>
Header.Master
<%@ Register Src="Sample_user.ascx" TagName="Sample1"
TagPrefix="uc1" %><form id="form1" runat="server">
<div style="width: 100%; height: 100%; margin: 0px 0px 0px 0px;border-color:Red; border-width:thick;">
<div>
<uc1:Sample1 ID="smpl1r`" runat="server" />
</div>
<asp:ContentPlaceHolder ID="ToolBarContent" runat="server">
</asp:ContentPlaceHolder>
<div class="TitleHeader" style="height: 30px;">
<table class="TitleHeader" border="0" width="100%">
<tr>
<td class="TitleFontColor">
<asp:ContentPlaceHolder ID="LeftHeaderContent" runat="server">
</td>
<td class="TitleFontColor" align="right">
<asp:ContentPlaceHolder ID="RightHeaderContent" runat="server">
</tr>
</table>
<div style="width: 100%; height: 100%; valign: top; background: #ece9d8">
<asp:ContentPlaceHolder ID="PageContent" runat="server">
Sample.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits=" Sample"
MasterPageFile="~/Header.Master"
Hi Michael,
Thank you so much for your reply. It is working in all browsers except Firefox. Your sample also not working in Firefox, There is gap between menu and sub menus. Can you please verify for me.
Thank you
Thank you so much for your reply. It is working for me in IE9. There is another strange behavior in Firefox. There is small gap between Menu Items and Sub-Menu Items. Due to this issue, not able to select sub items. I tested with sample code which you provided to me, Even that sample has same issue. Can you please review and let me know. But Major issue has been fixed.
Thank you.
Hi InfraOracle,
Thank you for the update. Please let me know if you need further assistance with this.
Thank you so much for your wonderful explanation. Let me try with this and get back to you.
Hello InfraOracle,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I set up my Sample.ascx to include the WebDataMenu code you provided. Then, I implemented my MasterPage with your code. I tweaked a few values for everything to match up correctly and created a very basic Sample.aspx since it looks like your code for it may have been cutoff. When I ran my Sample.aspx in IE9 I could see the menu and it's two root items as expected.
I have attached the sample project I used to test this. I've trimmed down the ig_res folder slightly to allow me to attach it to this post. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using. My test was performed using version 12.1.20121.2048 in NetAdvantage for ASP.NET 2012 Volume 1.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.