I encountered weird issue using Infragistics ASP.NET WebDataMenu control. If total width of top-level items was bigger than menu’s width and scrolling kicked in – Google Chrome browser produces unexpected results.
Consider following basic markup for Infragistics WebDataMenu:
<ig:WebDataMenu ID="WebDataMenu1" runat="server" Width="300px"> <ClientEvents Initialize="myInit" /> <GroupSettings Orientation="Horizontal" /> <Items> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> <ig:DataMenuItem Text="Root Item"></ig:DataMenuItem> </Items> </ig:WebDataMenu>
It’s a pretty basic markup that defines 10-item horizontal menu with a limited width, so scrolling is enabled. Code in the Initialize
event handler would handle some calculation based on menu dimensions and other items on the page would be affected by these calculations. Continue reading →