RadComboBox Filters too much

3 posts, 0 answers
  1. Macrel
    Macrel avatar
    32 posts
    Member since:
    Aug 2008

    Posted 06 Jan 2009 Link to this post

    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. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 06 Jan 2009 Link to this post

    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. :)
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Macrel
    Macrel avatar
    32 posts
    Member since:
    Aug 2008

    Posted 13 Jan 2009 Link to this post

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