Combo Box Alternate Text Display

Thread is closed for posting
2 posts, 0 answers
  1. Ajay
    Ajay avatar
    29 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2009 Link to this post


    When there is no item selected then the dropdown should display the alternate text i.e."Select Name" (or any other). On clicking the dropdown that text should disappear or appears when the item is not selected in Light color with italic font style.

    Thank you,

  2. Victor
    Victor avatar
    1358 posts

    Posted 25 Mar 2009 Link to this post

    Hello Ajay,

    Thank you for writing and your suggestion. We have added this feature to our TODO list and will consider implementing it in one of our future releases.

    Currently you could easily accomplish this by subscribing to the Enter and Leave events and changing the Text and Font properties as needed. Please note that all properties are being accessed through the ComboBoxElement property.

    If you need the functionality feel free to use the code below:

    public Form1()  
    private void radComboBox1_Enter(object sender, EventArgs e)  
        this.radComboBox1.ComboBoxElement.Text = "";  
    private void radComboBox1_Leave(object sender, EventArgs e)  
        this.radComboBox1.ComboBoxElement.Text = "Choose option";  
        this.radComboBox1.ComboBoxElement.Font = new Font("Arial", 8.5f, FontStyle.Italic);  
        this.radComboBox1.ComboBoxElement.ForeColor = Color.LightGray;  

    Please write back if you have other suggestions or questions.

    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top