Basic ComboBox autocomplete

2 posts, 0 answers
  1. mike
    mike avatar
    1 posts
    Member since:
    Oct 2010

    Posted 26 Oct 2010 Link to this post


    Im just testing rad combobox. I need a behaviour like this: http://localhost:59468/radcontrols_aspnetajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

    This is, a dropdownlist with autocomplete. I tried to isolate the example in a test APP, and the combobox is rendered, and partially works. Partially because the autocomplete behaviour does not work!

    I did those steps:
    - Added telerik dll to a test web project in the bin folder
    - Referenced this dll
    - Created the controls toolbox referencing this dll
    - "drag and drop" the combobox, and setting those properties:



    <telerik:RadComboBox DataSourceID="dsTestData" DataTextField="Name" ID="radCentral" runat="server"




    AllowCustomText="true" ExpandAnimation-Type="None" CollapseAnimation-Type="None">

    Any idea why the autocomplete does not work?



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Oct 2010 Link to this post

    Hello Mike,

    From the demo, I saw that we must set the MarkFirstMatch property to true to enable the autocomplete behavior.


    <telerik:RadComboBox DataSourceID="SqlDataSource1" DataTextField="LastName" ID="radCentral"
               runat="server" AllowCustomText="True" ExpandAnimation-Type="None" CollapseAnimation-Type="None"
               MarkFirstMatch="True" DataValueField="LastName">
               <ExpandAnimation Type="None"></ExpandAnimation>
               <CollapseAnimation Type="None"></CollapseAnimation>


Back to Top