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

Basic ComboBox autocomplete

1 Answer 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 26 Oct 2010, 04:13 PM
Hi,

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?

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Oct 2010, 12:33 PM
Hello Mike,

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

Mark-Up:

<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>
 </telerik:RadComboBox>

Regards,
Shinu.

Tags
ComboBox
Asked by
mike
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or