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

Commented Unassigned: 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");
}
Comments: Hi, Thank you for sharing your experience and participation in the development of the AJAX Control Toolkit library. We have fixed this issue and this fix will be available in the next release of AJAX Control Toolkit. Best regards, Fadil

Viewing all articles
Browse latest Browse all 4356

Trending Articles



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