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

Forcing Selection in a dropdown

2 Answers 50 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Toxic
Top achievements
Rank 1
Toxic asked on 27 Sep 2012, 11:51 AM
Ok, I wnat my users to be able to use the suggest append option, BUT I want them to only pick items that are in the list.

Any ideas on how this is possible?

eg. if the list contained :

apple
pear 
plum
orange
grapefruit

They can start typing "grap" and it autocompletes, but I don;t want them to not pick "grapefruit" from there. ie. leave just "grap" in the text field. Is there an option setting for this. There used to be something called first marked match I think in asp.

Any help appreciated.

Tox

2 Answers, 1 is accepted

Sort by
0
Toxic
Top achievements
Rank 1
answered on 27 Sep 2012, 12:27 PM
Additionally, I can see no way of setting the background colour of the items as they are added to the drop down.

Previously I used : 

dropdown.Items(i).Attributes.Add("style", "background-color:" etc.

But there is no attribute function. I have looked at using visualitem but must be referencing this incorrectly as this must be done at loading the list.

I need a list in various colours, is this possible?

Cheers

Tox 
0
Stefan
Telerik team
answered on 27 Sep 2012, 01:18 PM
Hi Tox,

Could you please specify which product are you using - RadControls for ASP.NET AJAX, Silverlight, WPF, because your question does not seems to be related to the WinForms suite where you have posted your question. Additionally, please specify the control as well.
 
Greetings,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
DropDownList
Asked by
Toxic
Top achievements
Rank 1
Answers by
Toxic
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or