This is becoming a bigger problem now, especially since we are close to 'release' readiness.
I downloaded the January 14th release, and its still a problem. However, I'm having a hard time replicating it outside our solution to post here.
Is there any other way to debug this problem?
In summary, we have a data form that has combo boxes replaced during the AutoGenerate method, the combo box is bound to a property on the view model and looks something like this:
this.SetItemsSourceBinding(comboBox, e.PropertyName, e.PropertyType, lookupAttribute, propertyInfo);
e.Field.Content = comboBox;
e.Field.Content.SetBinding(
RadComboBox.IsEnabledProperty, new Binding("IsEnabled") { Source = e.Field });
private void SetItemsSourceBinding(FrameworkElement element, string propertyName, Type propertyType, LookupFieldAttribute lookupFieldAttribute, PropertyInfo propertyInfo)
{
itemsSourceBinding =
new Binding(string.Format("FilterManager.{0}.Items", fmPropertyInfo.Name))
{
Source =
this.EntityViewModel,
Mode =
BindingMode.OneWay
};
// set the itemssource binding
element.SetBinding(
ItemsControl.ItemsSourceProperty, itemsSourceBinding);
// set the display member path to the lookup item's description.
((
ItemsControl)element).DisplayMemberPath = "Description";
// set the selected item binding to a converter that knows how to convert between the property's value
// and a lookup item.
element.SetBinding(
Selector.SelectedItemProperty,
new Binding(propertyName)
{
Mode =
BindingMode.TwoWay,
Converter =
new LookupBoundItemsControlToLookupItemConverter(),
ConverterParameter = element
});