Select Null Value for Combo

3 posts, 0 answers
  1. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 22 Aug 2010 Link to this post

    Hi There

    We basically require that the user can select a value in the combo that sets the bound value to null, ie "Nothing Set"

    From some reading I have found that the ClearSelectionButtonVisibility property should be able to do this yet with the code below, there is no difference to the drop down items.

    <telerikInput:RadComboBox Width="200" HorizontalAlignment="Left" VerticalAlignment="Center"
                    ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Nothing Set"
                    Margin="3" SelectedValuePath="contact_id" DisplayMemberPath="FullName" ItemsSource="{Binding AllCustomerContacts}"
                    SelectedValue="{Binding contact_id, Mode=TwoWay, ValidatesOnExceptions=True,
                    ValidatesOnDataErrors=True, NotifyOnValidationError=True}" />

    Please Help.

  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 24 Aug 2010 Link to this post

    Hi Nick,

    Thank you for contacting us.

    I have made a sample project in which I used the ClearSelectionButton to clear the value and it works fine. Attached I am sending it to you. Please feel free to modify it in order to reproduce the issue and send it back to us.

    Looking forward to your reply.

    Kind regards,
    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. DevCraft banner
  4. Nick Wood
    Nick Wood avatar
    126 posts
    Member since:
    Feb 2010

    Posted 24 Aug 2010 Link to this post

    Thanks for your help

    After looking at your code I realised that you had no styles which quickly pointed me to my style/template as the issue. when i remove the style, I could see the null button in the dropdown.

    Thanks very much for you help

Back to Top