Hello,
my code run fine under SL Q3 - yesterday i´ve updated to SL Q3 SP1 (V2009.3.1208) and I get NullReferenceExceptions from the RadComboBox.
Scenario:
1) RadComboBox in xaml:
<telerikInput:RadComboBox x:Name="myValueSelector" VerticalAlignment="Top" Margin="0,0,26,0" IsEditable="True"
Text="{Binding QualifiedValue, Mode=TwoWay}" FilteringMode="StartsWith" StaysOpenOnEdit="True" OpenDropDownOnFocus="True"/>
2) The DataContext of the RadComboBox is set to an instance of SelectedQualifiedValue (a simple helper class for databinding)
public class SelectedQualifiedValue: INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string myQualifiedValue;
public string QualifiedValue
{
get { return myQualifiedValue; }
set
{
if (myQualifiedValue != value)
{
myQualifiedValue = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs("QualifiedValue"));
}
}
}
}
}
3) The ItemsSource of the RadComboBox is set to a collection of strings.
4) The DataContext SelectedQualifiedValue.QualifiedValue is set to string contained in the collection.
5) SelectedQualifiedValue.PropertyChanged is raised as intended, but in SP1 the RadComboBox throws a NullRefernceException:
System.NullReferenceException occurred
Message="Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
StackTrace:
bei Telerik.Windows.Controls.RadComboBox.UpdateItemsVisibility(Boolean showAll, List`1 matchIndices)
A quick fix would be appreciated...
Best regards,
Thomas
my code run fine under SL Q3 - yesterday i´ve updated to SL Q3 SP1 (V2009.3.1208) and I get NullReferenceExceptions from the RadComboBox.
Scenario:
1) RadComboBox in xaml:
<telerikInput:RadComboBox x:Name="myValueSelector" VerticalAlignment="Top" Margin="0,0,26,0" IsEditable="True"
Text="{Binding QualifiedValue, Mode=TwoWay}" FilteringMode="StartsWith" StaysOpenOnEdit="True" OpenDropDownOnFocus="True"/>
2) The DataContext of the RadComboBox is set to an instance of SelectedQualifiedValue (a simple helper class for databinding)
public class SelectedQualifiedValue: INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private string myQualifiedValue;
public string QualifiedValue
{
get { return myQualifiedValue; }
set
{
if (myQualifiedValue != value)
{
myQualifiedValue = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs("QualifiedValue"));
}
}
}
}
}
3) The ItemsSource of the RadComboBox is set to a collection of strings.
4) The DataContext SelectedQualifiedValue.QualifiedValue is set to string contained in the collection.
5) SelectedQualifiedValue.PropertyChanged is raised as intended, but in SP1 the RadComboBox throws a NullRefernceException:
System.NullReferenceException occurred
Message="Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."
StackTrace:
bei Telerik.Windows.Controls.RadComboBox.UpdateItemsVisibility(Boolean showAll, List`1 matchIndices)
A quick fix would be appreciated...
Best regards,
Thomas