radComboBox and Null values.

2 posts, 0 answers
  1. Lee
    Lee avatar
    48 posts
    Member since:
    Feb 2010

    Posted 31 Mar 2010 Link to this post


    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
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 06 Apr 2010 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top