Disabling ComboBox on the Client Doesn't Change Appearance

2 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 08 Apr 2010 Link to this post


    I'm trying to disable the combo box on the client, and having it look disabled (using the italicized font, which I have been able to setup).  I manually invoke the requesting of items from the web service, and on the itemsrequested client-side event, I do this:



    itemsRequested(sender, e) {



      if (sender.get_items().get_count() == 0) {










    This actually runs, but the UI of the combo doesn't change to the new style...  do I have to programmably do it?


  2. Kalina
    Kalina avatar
    918 posts

    Posted 14 Apr 2010 Link to this post

    Hello Brian Mains,

    I can suggest you disable RadComboBox at the client using disable() method.

    If you prefer to modify some of the style properties of the RadComboBox at its "disabled" state, you can follow this approach:
    function itemsRequested(sender, e) {
        if (sender.get_items().get_count() == 0) {
            var inputArea = sender.get_inputDomElement();
            inputArea.style.color = "gray";
            inputArea.style.backgroundColor = "#cccccc";
            inputArea.style.fontWeight = "bold";

    Please let me know if this was helpful.

    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