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
30
WebMenu Style Breaks Control
posted

I have used the AppStyler to create new style sheets for the menu control.  however, when I attempt to assign the CssClass property on the control itself my menu doesn't not behave properly.  as soon as I set this value I only get 1 row (  or just the top item ) of sub menus when before I could have many items in the submenu.  it seems to be only the control cssclass property that is giving issues.

Also, i set the forecolor equal to white but the text is still black.  I am confused and wasting much time trying to get this control to render properly.

 One more item.  when using the app styler the hover covers the entire item from top to bottom, but using the style sheet created by the app styler my hover seems to have very large border and the hover does not cover the whole item

 i would attach screen shots and tried, but the insert image would not load from hard drive.

 here is code snippet and stylesheet

 

UltraWebMenu webMenu = new UltraWebMenu();

XmlDataSource source = new XmlDataSource();

source.ID = "XmlDataSource1";

source.Data = CreateVendorMenu().InnerXml;

source.XPath =
@"/root/Page";

//webMenu.EnableTheming = true;

//webMenu.EnhancedRendering = true;

//webMenu.ID = "bob";

//webMenu.MaxDataBindDepth = 3;

//webMenu.ExpandEffects.ShadowColor = Color.LightGray;

// webMenu.CssClass = "igmn_Control";

webMenu.ForeColor = Color.White;

 

// webMenu.EnableAppStyling = Infragistics.WebUI.Shared.DefaultableBoolean.True;

webMenu.IslandStyle.CssClass = "igmn_Island";

webMenu.TopSelectedStyle.CssClass = "igmn_TopSelected";

webMenu.HoverItemStyle.CssClass = "igmn_Hover";

webMenu.ItemStyle.CssClass = "igmn_Item";

webMenu.TopLevelHoverItemStyle.CssClass = "igmn_TopLevelHover";webMenu.Images.XPSpacerImage.Width = Unit.Pixel(1);

webMenu.ExpandEffects.ShadowWidth = 0;

 

 

ItemBinding x = new ItemBinding();

x.Depth = 0;

x.DataMember =
"Page";

x.TargetUrlField = "URL";

x.TextField = "Title";

webMenu.DataBindings.Add(x);

x =
new ItemBinding();

x.Depth = 1;

x.DataMember =
"Page";

x.TargetUrlField = "URL";

x.TextField = "Title";

webMenu.DataBindings.Add(x);

x =
new ItemBinding();

x.Depth = 2;

x.DataMember =
"Page";

x.TargetUrlField = "URL";

x.TextField = "Title";

webMenu.DataBindings.Add(x);

webMenu.DataSource = source;

// webMenu.DataBind();

this.FindControl("Menu").Controls.Add(webMenu);

 

 

 

/*webmenu infragistics*/

.igmn_Control

{

background-image: url(images/menuGradient.png);

font-family: Arial;

padding-left:1px;

height: 27px;

color:White;text-align:center;

}

 

.igmn_Island

{

background-color:#C1B69E;

font-family: Arial;

color:White;

}

 

.igmn_Item

{

background-color:Transparent;

border-width:0px;

width:100px;

}

 

.igmn_Leaf

{

}

 

.igmn_Parent

{

}

 

.igmn_TopLevelLeaf

{

}

 

.igmn_TopLevelParent

{

}

 

.igmn_Header

{

border-width:0px;

}

 

.igmn_Separator

{

}

 

.igmn_Hover

{

background-color:#938366;

border-color:#938366;

}

 

.igmn_TopLevelHover

{

background-color:#938366;

border-color:#938366;

}

 

.igmn_TopSelected

{

background-color:#938366;

}

 

.igmn_Disabled

{

background-color:#C1B69E;

font-size:xx-small;

font-family: Verdana; color:#D2D2D2;

}

Parents
No Data
Reply Children