ItemSource binding partially working issue

4 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 09 Feb 2011 Link to this post

    Ok I have a RadComboBox defined like below:

    <telerik:RadComboBox Margin="105,78,252,0" VerticalAlignment="Top" DisplayMemberPath="VisitReasonType_Desc" TextSearchMode="Contains" IsFilteringEnabled="True" IsEditable="True" CanAutocompleteSelectItems="True" CanKeyboardNavigationSelectItems="True" ItemsSource="{Binding VisitReasons, Mode=TwoWay}" SelectedItem="{Binding SelectedVisitReasonType, Mode=TwoWay}"  />


    The item source bind correctly and shows a row for each item except the text is not showing. I don't have an Item Template defined and do not want to use one. When you do select an item it places the VisitReasonType_Desc to the text of the combobox. Why would it be showing blank rows on the items?

    I have several other combos on this form that work great. 
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 10 Feb 2011 Link to this post

    Hello Jonathan Marbutt,

    I tested the issue, however I am not able to reproduce it. Used all the properties/bindings that you have send us in the forum thread and everything was showing fine. You can check this online example that shows the exact approach that is used when using DisplayMemberPath.

    If the problems persist please could you send us a sample project so we can investigate further.

    Regards,
    Boyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    57 posts
    Member since:
    Jun 2012

    Posted 10 Feb 2011 Link to this post

    I have checked the bindings and they are correct. The oddity is that the text shows once you select a row. It shows in the text area. But it doesn't show in the drop down. 

    Also your link to the online example is incorrect.
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 10 Feb 2011 Link to this post

    Hi Jonathan Marbutt,

    Sorry this is the correct link: http://demos.telerik.com/silverlight/#ComboBox/DataBinding.

    Greetings,
    Boyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top