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

bug: cannot enable item when disabled declaratively

2 Answers 37 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Lenny_shp
Top achievements
Rank 2
Lenny_shp asked on 15 Oct 2010, 10:51 PM

2010.2.809.35  VS2008 IE8

I have an item that is declarative set to enabled false that cannot be re-enabled with item.enable.   It stays disabled.
If it was NOT declarative disabled then I can disable then enable using the client API.
 
   <telerik:RadListBoxItem Enabled="false" Text="Apple" Value="Apple" />

 var items = listbox.get_items();  items.forEach(function(item) { item.enable(); item.check(); });

Update:  If the item is set to disabled in code, it could not be enabled in Javascript.

2 Answers, 1 is accepted

Sort by
0
Lenny_shp
Top achievements
Rank 2
answered on 19 Oct 2010, 08:57 PM
Can someone from Telerik respond to this issue?  
0
Yana
Telerik team
answered on 21 Oct 2010, 03:50 PM
Hi Lenny,

We're sorry for the late reply.

You are right that this is a bug in RadListBox, we'll fix it as soon as possible. For now please use the following work-around:

var item = $find("<%=RadListBox1.ClientID%>").findItemByValue("Apple");
item.enable();       
$telerik.$("#" + item.get_element().id).removeAttr("disabled");

We're sorry for the inconvenience.

Regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ListBox
Asked by
Lenny_shp
Top achievements
Rank 2
Answers by
Lenny_shp
Top achievements
Rank 2
Yana
Telerik team
Share this question
or