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

RadComboBox Filters too much

2 Answers 87 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 06 Jan 2009, 08:14 PM
With the definition below, if the user types 'M' only MRC0102 is displayed. I would expect to see all the Ms displayed and the first one auto selected. (EnableTextSelection is true). The filtering works as expected if I set MarksFirstmatch to false.

<telerik:RadComboBox ID="RadComboBoxStation" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="RadComboBoxStation_SelectedIndexChanged"
CausesValidation="False" MaxLength="20" Filter="StartsWith" MarkFirstMatch="True">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="Select ..." Value="-1" />
            <telerik:RadComboBoxItem runat="server" Text="ADD new Station" Value="0" />
            <telerik:RadComboBoxItem runat="server" Text="MRC0102 Graves Creek" Value="102" />
            <telerik:RadComboBoxItem runat="server" Text="MRC0106 Pass Creek" Value="106" />
            <telerik:RadComboBoxItem runat="server" Text="MRW17 Roaring Fork" Value="17" />
        </Items>
        <CollapseAnimation Duration="200" Type="OutQuint" />
    </telerik:RadComboBox>

Thanks for any clarification.

2 Answers, 1 is accepted

Sort by
0
Serrin
Top achievements
Rank 1
answered on 06 Jan 2009, 08:57 PM
Hi Macrel,

Here is what the online help says about MarkFirstMatch:

RadComboBox supports client-side autocomplete - end users can autocomplete combobox items. As soon as the user types some text in the input area, the text is automatically completed to the first matching item. To enable the autocomplete mechanism of the combobox, set the MarkFirstMatch property to True.

So... looks like it is behaving as expected, as MarkFirstMatch automatically grabs the first item that matches what is being typed, in this case MRC0102. :)
0
Marcel
Top achievements
Rank 1
answered on 13 Jan 2009, 03:10 PM
With respect, I disagree. MarkFirstMatch is doing what is described in the documentation, BUT it should not affect what items are shown in the combobox - with Filter="StartsWith" it should merely mark the first matching item and still show all the matching items.
Tags
ComboBox
Asked by
Marcel
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Marcel
Top achievements
Rank 1
Share this question
or