I have been trying to dynamically modify the CssClass property of a web explorer bar group using code similar to the following. We would like to have a different style for the first few group items; all other groups use the default style. The problem is the code does not seem to have any effect on the output. I checked the HTML output. It still uses the default CssClass defined in the styleSet. Is there any extra code i have to write to modify the style behavior?
<ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="250px" > </ig:WebExplorerBar>
protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) this.WebExplorerBar1.Groups[0].CssClass = "otherStyleClass"; }
Hello thehitman,
Please let me know if you need further assistance regarding your question.
Thank you.