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

IsEditable - case sensitivity

6 Answers 71 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 18 Nov 2010, 08:18 PM
I have a simple RadCombobox that is bound to a list of people.  I want to allow them to enter a name that is not in the list, so I have IsEditable=true.

The issue is with upper/lower case.  Example:  say the combobox has an item:  "john doe" (lower case j), and the user wants to enter "Jane Doe" (with upper case J)

They type an upper case J, and the combobox selects john doe.  They continue to type Jane Doe, but the 'j' is lower case since it previously predicted john doe.  There is no way for them to enter Jane Doe with a capital J. (besides pasting it in)

Is there anything I can do to fix this?

Thanks,
Justin

6 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 23 Nov 2010, 02:52 PM
Hi Justin,

I would suggest you to use TextSearchMode property of the RadComboBox. For more information, please refer to the following link -



Sincerely yours,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
bhargava
Top achievements
Rank 1
answered on 17 Jun 2015, 02:43 PM

Hi George,

I have same scenario for my combo box too. 

In my case,I have name for example: John in combo box. When I type john it doesn't give John. 

how can I make the search case insensitive . When I search for J/j I want to see John in the list.

I have gone into those links you have posted. If we can have 

http://www.telerik.com/forums/griddropdowncolumn-case-insensitive-selectedvalue 

 Is there anything i can do .

 

Thanks,

Bhargava 

0
Nasko
Telerik team
answered on 22 Jun 2015, 10:08 AM
Hello Bhargava,

By design RadComboBox is not case sensitive, so when you type 'j' or 'J' in both cases "John" should be filtered. What George proposed was to use either the ContainsCaseSentive or the StartsWithCaseSensitive modes of the TextSeachMode property in order to make RadComboBox case sensitive. So, could you please provide us some more detailed information about the exact version of the controls you are currently using and the observed behavior of RadComboBox when you type capital and small letters? Sending us a Xaml of your RadComboBox declaration will also be of great help for our further investigation.

We are looking forward to hearing from you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
bhargava
Top achievements
Rank 1
answered on 22 Jun 2015, 03:40 PM

Hi Nasko,

This is the XAML. I am using 2014.2.729 version. 

  <telerik:RadComboBox x:Name="ddlLocation" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="3" Margin="5,5,15,10"
                                     ItemsSource="{Binding Path=Resources}" DisplayMemberPath="Name" SelectedValuePath="Id"
                                     SelectedValue="{Binding Path=SelectedResourceId, Mode=TwoWay}"
                                     IsEditable="True" Text="{Binding Path=Location, Mode=TwoWay}"
                                     Utilities:EditableComboBox.MaxLength="255" IsEnabled="{Binding Path=CanUserUpdate}"/>

 

This is my issue. 

I have added 'TextSearchMode="StartsWithCaseSensitive" ' recently , before that this was the issue.

Lets say in my combo box i have text saved as 'all day' . When I try to type in the combo box , with capital A (caps lock on)it doesn't take that into effect. It shows the all day as a suggestion( which is in lower case) and I can't type All Day. I am only able to type lower letter till i reach the end of all day Tomorrow .

 

0
Nasko
Telerik team
answered on 24 Jun 2015, 02:43 PM
Hi Bhargava,

With the Q1 2015 release version of RadComboBox we presented a brand new FilteringBehavior â€‹functionality that provides the possibility to customize the logic behind the provided out of the box Filtering mechanism. Using it you will be  able to achieve the desired behavior of RadComboBox and filter the items as needed both when you are entering capital or small letters. So, we suggest you to upgrade to our latest official released version in order to get all latest features provided by Telerik controls. More detailed information about the custom FilteringBehavior of RadComboBox you could find on the following link:
http://docs.telerik.com/devtools/silverlight/controls/radcombobox/features/filteringbehavior.html

Hopes the provided information will help you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
bhargava
Top achievements
Rank 1
answered on 25 Jun 2015, 03:39 PM

sure 

Thanks

Tags
ComboBox
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
George
Telerik team
bhargava
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or