Forcing Selection in a dropdown

3 posts, 0 answers
  1. Toxic
    Toxic avatar
    20 posts
    Member since:
    Apr 2011

    Posted 27 Sep 2012 Link to this post

    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. Toxic
    Toxic avatar
    20 posts
    Member since:
    Apr 2011

    Posted 27 Sep 2012 Link to this post

    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 
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 27 Sep 2012 Link to this post

    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 >>
Back to Top