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

Binding problem

1 Answer 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JKattestaart
Top achievements
Rank 1
JKattestaart asked on 13 Nov 2009, 07:56 PM
Hi,
I'm new to the telerik control and i have a problem with the binding.
My combox selectedvalue is bound with the foreign key of a table on a dataform

<my:ProgramCB x:Name="cmbProgram" SelectedValue="{Binding Mode=TwoWay, NotifyOnValidationError=true, Path=ProgramId,           ValidatesOnExceptions=true}" Grid.ColumnSpan="7" Grid.Row="1" Grid.Column="4" TabIndex="1"/>

While the dataform loads the combobox is loaded with his own datasource.
So far so good, but initially the binding wipes out the values of the foreign key. I guess because the foreign key is overwritten by an inital empty combobox. When i debug the value it is 0, but the value from the dataset does have a value!

How to resolve this?

1 Answer, 1 is accepted

Sort by
0
Teodor
Telerik team
answered on 19 Nov 2009, 01:10 PM
Hello JohnK,

Thank you for your interest in our controls.

However, the code piece provided does not give us enough information on what might cause the issues you experience. In this relation I suggest you to open a new support ticket and attach a sample project reproducing the bug. This will speed up our work towards resolving the problem.

Thank you in advance for your collaboration.

Kind regards,
Teodor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
JKattestaart
Top achievements
Rank 1
Answers by
Teodor
Telerik team
Share this question
or