Highlighting contents in select box

2 posts, 1 answers
  1. Savyo
    Savyo avatar
    75 posts
    Member since:
    Apr 2012

    Posted 30 Apr 2012 Link to this post

    Hi there,

    I have a problem regarding the select box i'm using in my application. I want to select multiple items in the box. However I want to customize it further by highlighting the selected items in a color of my choice. Please help me out.
    Thanks in advance
  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Apr 2012 Link to this post

    Hello Savyo,

    Try the following javascript in of the RadComboBox.
    <script type="text/javascript">
    function OnClientItemChecked(sender, args)
     for (var i = 0; i < sender.get_checkedItems().length; i++)
        var item = sender.get_checkedItems()[i];
        item.get_element().style.color = "Red";

Back to Top