Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Edited Issue: TabContainer CssClass property ignored [27530]

$
0
0
In CreateControlStyle and AddAttributesToRender, CssClass is hardcoded to "ajax__tab_xp". Suggest replacing with:


protected override Style CreateControlStyle()
{
TabContainerStyle style = new TabContainerStyle(ViewState);
style.CssClass = CssClass; // was "ajax__tab_xp"
return style;
}
//...
protected override void AddAttributesToRender(HtmlTextWriter writer)
{
Style.Remove(HtmlTextWriterStyle.Visibility);
if (!ControlStyleCreated)
writer.AddAttribute(HtmlTextWriterAttribute.Class, CssClass); // was "ajax__tab_xp"
if (_useVerticalStripPlacement)
writer.AddStyleAttribute(HtmlTextWriterStyle.Display, "block");
if (!Height.IsEmpty && Height.Type == UnitType.Percentage)
writer.AddStyleAttribute(HtmlTextWriterStyle.Height, Height.ToString());

base.AddAttributesToRender(writer);
writer.AddStyleAttribute(HtmlTextWriterStyle.Visibility, "hidden");
}

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>