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

Text keeps grayed out when disabled on code-behind

1 Answer 166 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Teodorico
Top achievements
Rank 1
Teodorico asked on 21 Jul 2009, 02:32 AM

Hi,

1) I am disabling a RadComboBox on code behind:

<telerik:RadComboBox ID="nfServingSizes" runat="server" Width="120px" MaxHeight="450px" Enabled="false" OnClientSelectedIndexChanged="nfServingSizes_SelectedIndexChanged"></telerik:RadComboBox>

Once displayed, it is correctly disabled (disabled) and does not response to any events as expected.

2) On JavaScript, after an Ajax callback it is enabled:

var combo = $find("<%= cmb.ClientID %>");

combo.enable();

 

2) Then items are added:

item = new Telerik.Web.UI.RadComboBoxItem();

item.set_text(result.Weights[i].Quantity + " " + result.Weights[i].Unit);

items.add(item);
.. more items in a loop ..

item.select();

The dropdown displays the added items and starts responding to events, but the displayed text remains grayed-out.


It works properly on FF 3.5. The text is grayed out on IE7 and IE8.
 

 

Thanks.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 23 Jul 2009, 12:48 PM
Hello Teodorico,

I tested what you describe with the latest version of Telerik.Web.UI and could not observe it - the ComboBox enabled properly and its style was restored.

Please use the latest version of Telerik.Web.UI as it does not exhibit the issue.

Kind regards,
Simon
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
ComboBox
Asked by
Teodorico
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or