Trouble with databinding

5 posts, 0 answers
  1. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 08 Nov 2010 Link to this post

    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.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Nov 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 11 Nov 2010 Link to this post

    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
  5. Rayne
    Rayne avatar
    241 posts
    Member since:
    Sep 2010

    Posted 12 Nov 2010 Link to this post

    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.
  6. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 17 Nov 2010 Link to this post

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