I'd like to set the style of the null text that is displayed when the drop down is NULL (has no selected value). I know I can set the text for null, but what do I need to override to set the style? For instance, I'd like to set it Italic, and possibly dim the text itself - but only when the null value is displayed.
I assume I can simply override a CSS style (in a theme) but I have looked and looked and can't figure out which style I need to override. Any help appreciated.
-Tom
Dear Tom,
Thank you for contacting Infragistics!
We have received your support request concerning the WDD's null text styling, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue. Our team and I have done an initial review of your case and you we offer the ".igdd_NullText" style for this situation. This style is applied to the WebDropDown when displaying the Null text and removed when not displaying.
Please let me know if you have any further questions or concerns with this and I'll be glad to help you.
Michael,
Well I tried using .igdd_NullText as shown below, but it did nothing - the null text didn't change at all on any of my WebDropDowns. I have found that using the .igte_IGNullText does work for WebDropDownCalendar control null text, but I want to style the general Infragistics drop down null text .
Any other suggestions? (Note: I included this right on my ASP.NET page so it should have overridden it properly, I would believe.)
.igdd_NullText { background-color: transparent; color: #666666; font-weight: normal; font-size: 8pt; font-style: italic; font-family: Verdana,Arial,Helvetica,sans-serif; border-width:0px; width: 100%; z-index: 0; }
Hello SimpTheChimp,
If you are using a styleset other than Default for the WebDropDown, you will need to include the styleset's name in the NullText class. If using a styleset named DropDownStyle, you should override the .igdd_DropDownStyleNullText class.
If this does not work, it may be possible that other styles are conflicting with this and you may need to add an "!important" to your styles. I recommend using IE's Developer Tools to find more information on why the CSS isn't being applied correctly and what may be overriding it.
Please let me know if you need further assistance with this.
Please let me know if you still need help with this issue.
Hi,
I am getting the list of items to be loaded into webdropdown from the database. Once I get the values(ID, description,activeInd) I am adding those values(ID and description) one by one into the webdropdown like this:
For count = 0 to dbvalues.getcount - 1
webdropdown1.Items.Add(New Infragistics.Web.UI.ListControls.DropDownItem(dbvalues.Getvalue(count).ID & " "
& dbvalues.Getvalue(count).Description))
Next
Under this FOR loop, I would like to add a logic to set the font color of an item to RED if activeInd retrieved from the database is No. Can you please help?