<telerik:RadComboBox IsEditable=
"True"
IsTextSearchCaseSensitive=
"False"
Text=
"{Binding SchoolEducation}"
ItemsSource=
"{Binding SchoolEducations}"
/>
Hi,
since Release 2020.1.218 the TextProperty-Binding does not refresh my property in my ViewModel.
I also tried the current internal version.
Best regards,
Ronny Glass
6 Answers, 1 is accepted
Hi Ronny,
Thank you for the provided code snippet.
Can you try setting the binding mode of the Text property to TwoWay?
<telerik:RadComboBox IsEditable="True" IsTextSearchCaseSensitive="False" Text="{Binding SchoolEducation, Mode=TwoWay}" ItemsSource="{Binding SchoolEducations}" />
Give this approach a try and let me know if it works for you.
Regards,
Dinko
Progress Telerik
Hi Dinko,
it helps. But why the default behaviour changed? Isn't TwoWay what would be expected?
Regards,
Ronny
Hello Ronny,
I am not aware of any recent changes to the Text property of the RadComboBox. May I ask you to share from which version you have migrated so I can compare this behavior on my side? Can you also share the set-up of your model property? Can you confirm that you haven't made any changes to the project after the update? Any additional information which you think will help me to reproduce this will be highly appreciated.
Regards,
Dinko
Progress Telerik
Hi Dinko,
my customer reported the problem when I changed from 2020.1 to 2020.1 SP1. In my code, nothing changed since I implemented it. Maybe the behavior changed from 2019.3 SP2 to 2020.1 because changes in this area are not so often.
public
sealed
class
EditEmployeeViewModel : EditDialogViewModelBase<Employee>
{
private
string
_schoolEducation;
public
IList<
string
> SchoolEducations {
get
;
private
set
; }
public
string
SchoolEducation
{
get
=>
this
._schoolEducation;
set
{
if
(
this
._schoolEducation != value)
{
this
._schoolEducation = value;
this
.RaisePropertyChanged(() =>
this
.SchoolEducation);
}
}
}
}
Regards,
Ronny
Hi Ronny,
Thank you for the provided code snippet. I have tried to reproduce this behavior using the specified version but to no avail. On my side, if I don't set the binding Mode to TwoWay, the setter of the SchoolEducation property won't be called when I typed something in the RadComboBox. Can you take a look at the attached project and let me know if I am missing something from your implementation?
Regards,
Dinko
Progress Telerik
Hi Dinko,
I found my problem. I reworked my application some time ago. I changed ComboBox to RadComboBox. Your default Binding-Behaviour ist different from ComboBox, which is a little bit confusing.
Thank you very much for your support.
Best Regards,
Ronny