I just installed the ASP.NET 2008 v3 2039 CLR2.0 hot fix and then upgraded my website to this latest version and I noticed the CssClass doesn't seem to work anymore when I'm using it for my webcombos. The width of my webcombo before installing the hotfix was set correctly to 150px (per the CssClass), but after installing the hotfix, the width isn't constrained to 150px anymore.
If I remove the CssClass and put in width="150px" instead, then this works, but not the CssClass. Did something change in the hotfix? It looks like the sameissue is occurring for the WebDateChooser also.
<igcmbo:WebCombo ID="wcPattern" runat="server" ComboTypeAhead="Suggest" Editable="True" EnableXmlHTTP="True" SelBackColor="" SelForeColor="" Version="4.00" CssClass="wcClrCol4" DataTextField="Pattern" DataValueField="Pattern"> <Columns> <igtbl:UltraGridColumn Key="Pattern" Width="150px" BaseColumnName="Pattern"> <header caption="Pattern"> </header> </igtbl:UltraGridColumn> </Columns> <ExpandEffects ShadowColor="LightGray" /> <DropDownLayout Version="4.00" XmlLoadOnDemandType="Accumulative" DropdownWidth="192px" StationaryMargins="Header" AutoGenerateColumns="False" SortCaseSensitiveDefault="False" RowHeightDefault="15px" TableLayout="Fixed"> <FrameStyle Height="130px" Width="192px"> </FrameStyle> </DropDownLayout> </igcmbo:WebCombo>
here's my CSS for the class highlighted above
.wcClrCol4{ width:150px; height:20px; }
Thanks,
John
It's possible that the RedPlanet style was modified to add height and width properties to it and that's what has changed. You can remove the height and width from the RedPlanet style - I'm guessing it's the "ig_RedPlanetEditWithButtons" class which is found in ig_shared.css, or it could be the igcmb_RedPlanetEditWithButtons found in ig_combo.css. Alternatively, you can mark your height and width as important.
eg.
.wcClrCol4{ height:20px; !important width:200px; !important}
Tony,
Here's what I see when I do a view source for one of the webcombos.
I do see my css class in the source (I bolded it) - it's after the RedPlanet appstyle.
When I use Firebug in Firefox to inspect the webcombo, I see the following.
I'm thinking the RedPlanet appStyle is override my css class, but it wasn't
doing this prior to the hotfix. Let me know if this helps or you need more info.
John,
This could be a regression issue, so I'll let the QE team know to try it out. There are a couple of pieces of information that would be helpful to both understand what's going on, and possibly give you workaround.
When you view your page in the browser and do a view source, search for your classname, and see if it shows up in any of the elements as "class=". If the class isn't being emitted, then it's most likely a regression issue. If the class is being emitted, you need to figure out why your width is no longer taking effect. For that, turn to IE Developer Toolbar. You can click on an element and view the CSS behind it. In this case, you're looking for anything overriding the width your setting. It might be as easy as marking your width with !important.
Hope this helps,
-Tony