This is a migrated thread and some comments may be shown as answers.

Stop Text Highlight/Selection

1 Answer 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kim
Top achievements
Rank 1
Kim asked on 30 Aug 2016, 03:32 AM

Hi, how can I stop the user from highlighting text of the selected item in a combo?

 

See image.

 

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 01 Sep 2016, 08:56 AM
Hello Kim,

You can prevent the highlighting with the following CSS rule:
.rcbInput  {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none
}


Regards,
Ivan Danchev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
ComboBox
Asked by
Kim
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or