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

Select Null Value for Combo

2 Answers 156 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Nick Wood
Top achievements
Rank 1
Nick Wood asked on 23 Aug 2010, 04:32 AM
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.

Nick

2 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 24 Aug 2010, 02:54 PM
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,
Konstantina
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
0
Nick Wood
Top achievements
Rank 1
answered on 25 Aug 2010, 04:02 AM
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

Nick
Tags
ComboBox
Asked by
Nick Wood
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Nick Wood
Top achievements
Rank 1
Share this question
or