bug: cannot enable item when disabled declaratively

3 posts, 0 answers
  1. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 15 Oct 2010 Link to this post

    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. Lenny_shp
    Lenny_shp avatar
    343 posts
    Member since:
    Jul 2006

    Posted 19 Oct 2010 Link to this post

    Can someone from Telerik respond to this issue?  
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 21 Oct 2010 Link to this post

    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
Back to Top