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

Can't Clear RadComboBox and other strange issues

2 Answers 92 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Imran
Top achievements
Rank 1
Imran asked on 12 Oct 2011, 04:00 PM
We are allowing users to choose multiple employees separated by semi-colons from a large list of employees, similar to the way MS Outlook allows you to choose multiple people to send an email to.

We are using a RadComboBox with an auto complete separator allowing us to choose multiple items from the combo box.

<telerik:RadComboBox

ID="cmbAuthors" runat="server"     

Width="400px" Height="140px"    

EmptyMessage="Type an author"         

MarkFirstMatch = "true"   

AutoCompleteSeparator = ";"

DataTextField="fullname"    >                                                                   

</telerik:RadComboBox>                           


We are seeing a bunch of strange stuff happen:
1) If you have nothing selected in the combobox and move to the next control, the first item is selected.
2) If you choose a couple of names from the drop down, hit semi-colon, and then tab to the next control, the first item in the dd is appended to the list.
3) If you just try to highlight everything in the text box and delete it in order to start over, some combination of what you originally had in the box reappears, sometimes just the last item you had choosen appears, sometimes the entire previous selection reappears.

This seems like a simple use case, anyone else seeing this behavior or have some tips.

Thanks

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Oct 2011, 12:00 PM
Hello Imran,

I am unable to reproduce your issue on my end.You can make sure that the property "AllowCustomText" is set as true.You can also take a look into the following demo.
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

Thanks,
Shinu.
0
Ivana
Telerik team
answered on 17 Oct 2011, 01:02 PM
Hello Imran,

You are right about the behavior described in scenarios under point 1) and 2). 
To deal with this kind of behavior, you could set the AllowCustomText property of the RadComboBox  to "true".

However, I could not reproduce the scenario under point 3). Could you please check whether there is a change in the behavior when the AllowCustomText  property is set?

All the best,
Ivana
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ComboBox
Asked by
Imran
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ivana
Telerik team
Share this question
or