Clearing bug?

2 posts, 0 answers
  1. William
    William avatar
    15 posts
    Member since:
    Jun 2010

    Posted 13 Sep 2010 Link to this post

    Hi,
    I have the following combobox that I am trying to use essentially as an edit field and the dropdown list as a collection of predefined values that the user can select.

    The problem is that the 'Clear' button in the dropdown list (that shows up due to the 'ClearSelectionButtonVisibility' property) does not always clear the text. It works fine if I select an item from the dropdown list before the clear, but if I type in text that does not match any of the items then it does nothing.
    Best regards,
    Pete

     


    <
    telerik:RadRibbonComboBox

     

     

    CanAutocompleteSelectItems="True"

     

     

    CanKeyboardNavigationSelectItems="True"

     

     

    ClearSelectionButtonVisibility="Visible"

     

     

    EmptyText="Enter text"

     

     

    FilteringMode="Contains"

     

     

    IsEditable="True"

     

     

    IsFilteringEnabled="True"

     

     

    IsReadOnly="False"

     

     

    ItemsSource="{Binding Source={x:Static local:Core.App}, Path=SummaryTextForAllGames, Mode=OneWay}"

     

     

    MinWidth="250"

     

     

    OpenDropDownOnFocus="True"

     

     

    StaysOpenOnEdit="True"

     

     

    Text="{Binding Path=Value, Mode=TwoWay}"

     

     

    TextSearchMode="Contains"

     

     

    VerticalAlignment="Center"

     

     

    />

     

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 13 Sep 2010 Link to this post

    Hello William,

    The Clear button sets SelectedItem=null and nothing more. If the typed text does not match any item, the SelectedItem will already be null and if you click the Clear button, the selection will not change and the text will not be updated. I think your scenario is reasonable, and I will update the control to set the Text property when the Clear button is clicked. The upcoming service pack this week will contain the update.

    Kind regards,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top