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

radComboBox and Null values.

1 Answer 159 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lee
Top achievements
Rank 1
Lee asked on 31 Mar 2010, 01:42 PM

I am displaying list of customers in a radComboBox. its value customerID should be saved into a FK_CustomerID column.
It does this propoerly. 

Now when i retrieve the same record , i would like to de-select the customer so that i can set FK_CustomerID to null in database.
but i see that there is no way to deselect the customer to reset FK_CustomerID back to null. 

How do i solve this ?  

Regards

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 06 Apr 2010, 09:38 AM
Hi Lee,

You can deselect a selected item in RadComboBox by setting the SelectedIndex property to -1 and clearing the SelectedItems collection if there are multiple selected items.

If this does not help, please explain in more detail what your goal is since I could not fully understand it from the information provided. RadComboBox serves simply as a visualization of data, but it knows nothing about databases, constraints, relations or data tables. Thanks.

I am looking forward to your reply.
 
Sincerely yours,
Victor
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.
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Lee
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or