This is a migrated thread and some comments may be shown as answers.

Custom RadCombobox is transparent in RadGrid in IE7

4 Answers 116 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
blablabla
Top achievements
Rank 1
blablabla asked on 28 Dec 2011, 03:24 PM
Hi,

I created a custom control that inherits from the RadCombobox. I do 2 things within the control: I added a new property and I override the Databind() method.

I use the control in the EditItemTemplate of the RadGrid, and it is defined as such:

<cc:RatingValuesDropDownField ID="ddlRatingValue" runat="server" RatingType="Type1"  MaxHeight="200px" />

I don't change anything related to the look of the control in my code, yet it ends up looking like what's displayed in the attached picture in IE7.

I use RadFormDecorators inside my code, so I am not sure if that's the issue or not.

Any ideas?

Thanks.

edit: forgot to add that the drop down displays fine when outside of a radgrid.

4 Answers, 1 is accepted

Sort by
0
radfreak
Top achievements
Rank 1
answered on 14 Apr 2012, 06:37 PM

Having a very similar issue with a RadComboBox but in a custom user control's single instance ITemplate. The dropdown button of the ComboBox is somehow hidden and the list is transparent. Can say i know how to force either on to transparent.

Any help would be appreciated.

 

 

 

<telerik:RadComboBox ID="listSecurityInfoLabs" runat="server" Visible="false"
 CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Width="140px" MaxHeight="300px"
 ForeColor="White" BackColor="#2979EF" EmptyMessage="Select Lab(s)" Text="Select Lab(s)"
 CloseDropDownOnBlur="true" OnClientBlur="secLabs_onDropDownBlur"
 OnClientDropDownOpening="secLabs_onDropDownOpening">
</telerik:RadComboBox>

0
Ivana
Telerik team
answered on 18 Apr 2012, 12:52 PM
Hello,

@Stuts -- it seems like the z-index of the drop-down list and the drop-down arrow is smaller than the one set to the parent container of RadComboBox. You could try the following CSS to overcome this behavior:
.rcbSlide, .rcbArrowCell
{
    z-index: 10000 !important;
}
If this does not help, you could inspect the elements (with the developer tool of your browser) and see which element exactly needs the z-index bigger than it is now or how do you need to set the z-index rule in order for the CSS style to take place.

@blablabla -- it seems like the Default skin of RadComboBox is not applied which applies by default unless a skin is explicitly defined using the Skin property of RadComboBox. Beside the skin, there seem to be a problem with the z-index as well. To see how to overcome the z-index issue refer to the answer above addressed to Stuts.

Greetings,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
radfreak
Top achievements
Rank 1
answered on 20 Apr 2012, 05:09 PM

 

Well, gave that a shot but Well, gave that a shot but now it’s just intermittent behavior :)
I checked everything using a z-index and the highest z-index used is 2. I haven't found any pattern to when it renders as transparent and when it doesn’t. Got any other ideas?

0
radfreak
Top achievements
Rank 1
answered on 20 Apr 2012, 06:57 PM
Well, i've figured out something that resembles a work-around by using your suggestion and adding a few forced styles. I also had to copy the rcbSprite.png directly into the site since the reference did not work as "ComboBox/rcbSprite.png"

.rcbSlide, .rcbArrowCell { z-index: 10000 !important; }
.rcbSlide { background-color:White !important; }
.rcbArrowCell { border: 1px solid #E5E5E5 !important;background:White url('images/rcbSprite.png') no-repeat -1px 50% !important; }
Tags
ComboBox
Asked by
blablabla
Top achievements
Rank 1
Answers by
radfreak
Top achievements
Rank 1
Ivana
Telerik team
Share this question
or