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

Trouble with databinding

4 Answers 75 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Rayne
Top achievements
Rank 1
Rayne asked on 08 Nov 2010, 11:21 PM
Here is the ComboBox code:
<telerik:RadComboBox Text="{Binding Status}" Width="90">
    <telerik:RadComboBoxItem Content="OPEN" />
    <telerik:RadComboBoxItem Content="CLOSED" />
</telerik:RadComboBox>

When I run my app It's not showing the bound Status. Could it have something to do with binding and the declarative items? The Status property is a string property.

Thanks.

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 11 Nov 2010, 11:10 AM
Hello Rayne,

Could you please also paste the code of the ViewModel that you are using. Initially, there shouldn't be any problems with the declarative items and the binding.

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
Konstantina
Telerik team
answered on 11 Nov 2010, 11:34 AM
Hi Rayne,

This is a follow up of my previous post - could you please also try to set the attached property TextSearch.TextPath="Content". And let us know if that helped.

Greetings,
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
Rayne
Top achievements
Rank 1
answered on 12 Nov 2010, 02:42 PM
I resolved my issue in a strange way.

This comboBox was initially part of a Data Template that made up the Content for a RadPane. When I moved it to another user control (which was necessary for other reasons) and did the databinding on the UserControl to the viewModel (then set the content of the RadPane to the user control), it works as expected.

Thanks.
0
Konstantina
Telerik team
answered on 17 Nov 2010, 11:00 AM
Hello Rayne,

We are glad that you have resolved the issue yourself.

Please let us know if you have any other questions about our controls.

Best wishes,
Konstantina
the Telerik team
See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
Tags
ComboBox
Asked by
Rayne
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Rayne
Top achievements
Rank 1
Share this question
or