Selectable Text When Disabled Style?

2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Jun 2009

    Posted 18 Sep 2012 Link to this post

    Hello,
    I am attempting to customize the default RadComboBox style to allow the Text in the PART_EditableTextBox to be selectable (but not editable) when the combobox is disabled. I've modified the IsReadOnly and IsEditable properties of the part in the Disabled State to no effect. No matter what modifications I make to the style, the end result is still a disabled textbox that does not allow me to select it's contents.

    I ran a quick search throught this forum and have not encountered anybody asking for this feature. Can you provide me with an example or steps to produce my desired feature?

    Thanks very much in advance for any assistance.
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 20 Sep 2012 Link to this post

    Hi David,

    The needed behavior can be achieved with the following properties:

    <telerik:RadComboBox IsEditable="True" IsReadOnly="True">

    Note that whether the Text is selectable is controlled by IsReadOnly property, not by IsEnabled.

    Hope this helps.

    Greetings,
    Maria
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. DevCraft banner
Back to Top