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

Change the text color of disable telerik RadComboBox

9 Answers 522 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Sharad
Top achievements
Rank 2
Sharad asked on 19 Nov 2014, 07:31 AM
1.Find attached file.
2.how to change text color of disable dropdown.because text show in tranparent.

9 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 21 Nov 2014, 01:50 PM
Hello Sharad,

By design the rendering and the style for the RadDropDownList in disabled state is not like the one demonstrated in the attached image, but like the one demonstrated in the video below :

http://screencast.com/t/ANh3zZkH8g

Please provide us with the custom styles that you are applying on the control so we could pinpoint the problematic one and provide you with the proper solution.

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sharad
Top achievements
Rank 2
answered on 28 Nov 2014, 09:31 AM
Hello Sir,

Actully, i am using telerik RadDropDownList control and if this control is enabled so its working fine in all browsers especilly internet explorer 9 but if this control is disabled then dropdownlist selected item text get transpernt in internet explorer 9 .

 <telerik:RadDropDownList runat="server" ID="ddlTimezone"
                                    AutoPostBack="true"
                                    OnDataBound="ddlTimezone_DataBound"
                                    OnSelectedIndexChanged="ddlTimezone_SelectedIndexChanged"
                                    EnableTextSelection="true"
                                    CollapseAnimation-Type="None" OnLoad="ddlTimezone_Load"
                                    EnableLoadOnDemand="true" Width="275" DropDownHeight="240px">
                                </telerik:RadDropDownList>





0
Accepted
Magdalena
Telerik team
answered on 01 Dec 2014, 01:43 PM
Hello Sharad,

Try to apply the following CSS to improve visibility of the text of disabled RadComboBox

/*Target IE8-10*/
@media screen\0 {
    html .RadDropDownList .rddlDisabled {
        filter: alpha(opacity=100);
        border-color: #ccc;
    }
}
  
/* Taret IE10*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    html .RadDropDownList .rddlDisabled {
        filter: alpha(opacity=50);
        border-color: #777;
    }
}


Regards,
Magdalena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sharad
Top achievements
Rank 2
answered on 11 Dec 2014, 06:10 AM
Hello Sir,
I used this CSS so it is working fine in internet explorer 10.
But this CSS is not working in internet explorer 9.
I am Attaching both file so please see this file and resolve my problem

Thanks and Regards,
Sharad Kumar Rathore
0
Ivan Zhekov
Telerik team
answered on 13 Dec 2014, 09:58 AM
It's actually working. The reason why it may seem like it's not working is because IE9 and lower are applying extra styles to disabled elements, namely the inset font style.

That style can not be overwritten.

Regards,
Ivan Zhekov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sharad
Top achievements
Rank 2
answered on 21 Jan 2015, 01:01 PM
Hello Sir,

      i am using telerik telerik:RadComboBox control and if this control is enabled so its working fine in all browsers especilly internet explorer 9 but if this control is disabled then ComboBox selected item text get transpernt in internet explorer 9 and 8 .please give me proper solutions.

I followed all solution that you suggested but my problem doesn't solved, so please suggest me other solution.

<telerik:RadComboBox
        runat="server"
        DataSourceID="DepartmentDataSource"
        ID="radCmbBoxDepartment"
        DataTextField="Name" OnLoad="radCmbBoxDepartment_Load"
        OnSelectedIndexChanged="radCmbBoxDepartment_SelectedIndexChanged" OnItemDataBound="radCmbBoxDepartment_ItemDataBound" OnPreRender="radCmbBoxDepartment_PreRender"
        DataValueField="CustomId"
        AllowCustomText="false"
        AutoPostBack="true">
        <ItemTemplate>
            <asp:Label runat="server" Width="10px" Height="10px" BackColor='<%# GetColor(Eval("Colour").ToString())%>' ForeColor='<%# GetColor(Eval("Colour").ToString())%>'></asp:Label>
            <asp:Label runat="server" Text='<%# GetTextByLength(Eval("Name"), 200)%>' ToolTip='<%#Eval("Name")%>'></asp:Label>
        </ItemTemplate>
    </telerik:RadComboBox>

Regards,
Sharad Kumar Rathore







0
Ivan Zhekov
Telerik team
answered on 22 Jan 2015, 09:13 AM
Hi,

As stated multiple times in the this thread, the way how disabled items look in IE9 and lower is not something we can alter.

Regards,
Ivan Zhekov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Prahlad
Top achievements
Rank 1
answered on 22 Apr 2015, 12:44 PM

Hello Sir,

 

I am using raddropdowntree when i select the node then selected text disappear if use mouse over on that raddropdowntree  then it's show in IE only . I have done lot's of R&D but still there is no solution so please help me out with this. i hope you will have this solution.

please provide me

thanks you so much

0
Ivan Zhekov
Telerik team
answered on 27 Apr 2015, 08:48 AM
This thread is about RadComboBox. Please do not post questions about other controls here.

In addition, the information in your question is not enough to provide you with an answer. It's best if you start a new thread and disclose all relevant information, such as the version you are using, exact settings of RadDropDownTree, operating system, additional browser info, etc.

Regards,
Ivan Zhekov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
DropDownList
Asked by
Sharad
Top achievements
Rank 2
Answers by
Nencho
Telerik team
Sharad
Top achievements
Rank 2
Magdalena
Telerik team
Ivan Zhekov
Telerik team
Prahlad
Top achievements
Rank 1
Share this question
or