ComboItem Text Font Bold using JavaScript

2 posts, 1 answers
  1. Velkumar
    Velkumar avatar
    85 posts
    Member since:
    Apr 2011

    Posted 26 Apr 2012 Link to this post

    Hi,

          I have a ComboBox in my page. In this I would like to bold the font of some items using javascript on
    OnClientDropDownOpening event.
    
    Thanks 
    Velkumar.
    
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Apr 2012 Link to this post

    Hi Velkumar,

    Try the following JavaScript to make the items Bold in RadComboBox.

    JS:
    <script type="text/javascript">
      function OnClientDropDownOpening(sender, args)
        {
            var item = sender.findItemByText("text");
            item.get_element().style.fontWeight = "Bold";
        }
    </script>

    Regards,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top