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

radComboBox and DataBinding not working

3 Answers 134 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 23 Feb 2010, 06:49 PM
I have a radComboBox which is to display list of country
I have CompanyMaster bindingsource  and CountryMaster bindingsource objects.
radComboBox 's datasouce is CountryMaster bindingsource  and in databinding selecectedItem is set to masterCompanyBindingSource - FK_CountryID

but when i select a  value it does not gets changed in underlying binding source.

what is the problem ?

Observation: above technique works well with WinForm Dropdown control.


Regards

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 24 Feb 2010, 09:28 AM
Hello Lee,

I am afraid that I do not completely understand your issue, namely, how are you setting the selected item to the name of a relation - "and in databinding selecectedItem is set to masterCompanyBindingSource - FK_CountryID". Please explain your scenario in more details and if possible paste the code region which you are using to bind the combo boxes. I am looking forward to your reply.

Best wishes,
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.
0
Lee
Top achievements
Rank 1
answered on 24 Feb 2010, 07:54 PM
Hi Victor,

Sorry for not been clear on the question.

But i have now got the solution. I was binding SelectedItem property, which i believe was wrong.

Binding to SelectedValue property did the job.

Regards
0
Victor
Telerik team
answered on 25 Feb 2010, 09:01 AM
Hi Lee,

It is great that you quickly found a solution. We are ready to assist you should you have other questions.

Best wishes,
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
Lee
Top achievements
Rank 1
Share this question
or