i am working with version 2010.3.1110.35
i have this in the listbox itemTemplate
Field returns a class that implements
and Fields returns a List<Field>
now when i ran the application, if i set a breakpoint on get field, i can see it is trying to get it,
and that the value returned is correct
but when gui is finished loading
selectedindex is set to -1 and selecteditem and selectedvalue is set to null , and combobox doesn't show the selection of the field
but if i change the line into
<ComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
and use the regular wpf combobox it will work
it only happens when it's loaded , after it's loaded if i change stuff , it will work , but the first time doesn't work
how can i solved this?
thanks
i have this in the listbox itemTemplate
<
telerik:RadComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
Field returns a class that implements
INotifyPropertyChanged
and Fields returns a List<Field>
now when i ran the application, if i set a breakpoint on get field, i can see it is trying to get it,
and that the value returned is correct
but when gui is finished loading
selectedindex is set to -1 and selecteditem and selectedvalue is set to null , and combobox doesn't show the selection of the field
but if i change the line into
<ComboBox x:Name="FieldComboBox" Grid.Column="0" ItemsSource="{Binding Fields}" SelectedItem="{Binding Field,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
and use the regular wpf combobox it will work
it only happens when it's loaded , after it's loaded if i change stuff , it will work , but the first time doesn't work
how can i solved this?
thanks