Thread is closed for posting
2 posts, 0 answers
  1. Jorge Delgado-Lopez
    Jorge Delgado-Lopez avatar
    82 posts
    Member since:
    Aug 2007

    Posted 23 May 2008 Link to this post

    Is there a way to supress the choosing of an item?

    What I need is a readonly combobox, but I want all the functionality available since the items have descriptions and I would like the user to explore the posibilities but not be able to change them.

    - jorge
  2. Nikolay
    Nikolay avatar
    1805 posts

    Posted 26 May 2008 Link to this post

    Hi Jorge Delgado-Lopez,

    Currently, RadComboBox does not support the SelectedIndexChanging event. It will be implemented for one of our future releases. For the time being, I can suggest two workarounds:
    1. Use the TextChanging event of RadComboBox.ComboBoxElement to cancel the selection. However, you will not be able write in the textbox portion of the control and therefore to use the AutoCompleteMode.
    2. Keep the old selected index of RadComboBox and then set it back in the SelectedIndexChanged event handler. In addition, you should know whether the initial firing of the SelectedIndexChanged event (on Form loading) or this event is fired by the user. I have attached a sample project to demonstrate this.

    I hope this helps. If you have additional questions, do not hesitate to contact me.

    Sincerely yours,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top