I am having serious problems with the new WebExplorerBar (Not the old WebListBar in Explorer mode). It does not appear to accept the currently selected application styleset (in this instance Carribean, but the choice of StyleSet is immaterial).
I have tried applying my own CSS Styles to the CssClass, HoverCssClass and SelectedCssClass properties of newly-added groups and items andit looks dreadful. The Style seems to be applied with some kind of offset - it looks as though the style is being applied below the text of each group and item. I have also tried assigning values to the StyleSet and StyleSetPath propertied of the control (both as static declarations in the ASPX file and also via program code). No joy.
Anyway, applying my own styles was merely an attempt at a workaround. Nothing seems to work.
The declaration of the bar in the ASPX file looks like this:
<
ig:WebExplorerBar ID="TheCart" runat="server"></ig:WebExplorerBar>
Groups, Items and sub-items are being added by code in the form open event. Items are added as expected but the styling is missing.
It looks like the control does not accept the application styling in the design view of the page. Other controls adopt the Carribean look and feel in the Design and Split preview windows but the WebExplorerBar remains grey.
Looks suspiciously like a bug to me :(
This has already cost me a lot of time. Any ideas would be gratefully received.
Kind regards
Paul
VS 2010 (C# Web Project)IG ASP.NET 2010.2Win 7 Ult 64. 8GB RAM
Hi Paul,
I noticed that you write the name of the theme "Carribean", while the correct spelling is "Caribbean" and it works fine in 10.2 in Design and Runtime.
Hope this helps.
Thanks,
Lubomir
Thanks Lubomir,
My spelling was wrong (too many late nights and too much coffee!) but it is not the source of the problem - I am using the Infragistics Styling Tool to Select the Application Style from a drop-down list.
It is definitely not working for me, so, further investigation shows that, if you create a new Web Form in a project and place a WebExplorerBar in it, it adopts the correct style. Gr8. However, if you right click on a Master page, add a content page and put the Explorer bar in the content page it does not adopt the style. Hope this helps.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="CerberusTestBed.WebForm1" %>
<%@ Register Assembly="Infragistics4.Web.v10.2, Version=10.2.20102.1011, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
Namespace="Infragistics.Web.UI.NavigationControls" TagPrefix="ig" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"><title></title></head>
<body>
<form id="form1" runat="server">
<div><ig:WebExplorerBar ID="WebExplorerBar1" runat="server" width="250px"></ig:WebExplorerBar>
</div>
</form></body></html>
<%@ Page Title="" Language="C#" MasterPageFile="~/Cerberus.Master" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="CerberusTestBed.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="250px"></ig:WebExplorerBar>
</asp:Content>
I tried both cases and they work fine and Caribbean styleset is properly applied. With the markup you have posted you have to add some groups because else the control will render empty.
Also I set the styleset using the StyleSetName property. May be the styling tool is doing something wrong or the path to your stylesets is not correct.