MarkFirstMatch / Limit to items in list

2 posts, 0 answers
  1. Carlo
    Carlo avatar
    10 posts
    Member since:
    Dec 2011

    Posted 12 Sep 2014 Link to this post

    Hello -

    We're using RadComboBox as our standard drop down list in our product. We are using MarkFirstMatch to enable the "type ahead" function in lists, however we have found that if users type in invalid text the ComboBox will keep the value anyway (invalid being not in the list of items to select when used as a DDL). We would like to restrict user input only to the items found in the list, how might we go about doing this? Is there a good baked in way?
  2. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 17 Sep 2014 Link to this post

    Hello Carlo,

    In order to achieve the desired functionality, you should set the MarkFirstMatch property to true and AllowCustomText to false. You could test the behavior with our online demo here :

    http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx


    Simply set the aforementioned properties configuration to the AutoComplete fieldset demo and you could test the behavior.

    Regards,
    Nencho
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top