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

ItemSource binding partially working issue

3 Answers 64 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 09 Feb 2011, 09:23 PM
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. 

3 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 10 Feb 2011, 05:51 PM
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>>
0
Jonathan
Top achievements
Rank 1
answered on 10 Feb 2011, 05:53 PM
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.
0
Boyan
Telerik team
answered on 10 Feb 2011, 06:15 PM
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>>
Tags
ComboBox
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or