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
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