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

SelectedItem Binding

1 Answer 94 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 22 Jan 2018, 11:54 PM
WPF binding is two-way be default, I swapped out a bunch of controls in a project to telerik. It has come to my attention some telerik controls are not two-way by default. Is there a way to set certain bindings to two-way by default? Or would I need to explicitly do it at each location? Also, I heard that RadWatermarkTextBox is two-way by default, where could one find a list of what is and what is not if such a list exists?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 25 Jan 2018, 03:24 PM
Hi Lee,

Let me start with that we don't provide such list which list which controls are two way and which don't. By default most of the bindings are one-way. I could say for example that the input controls in our UI for WPF suite have two-way binding by default. But it depends on control and the scenarios which the control is created for.

If you want to make specific binding two-way, you can easily do it by setting the Mode property in the binding.
<telerik:RadDatePicker SelectedDate="{Binding Path=MyDate , Mode=TwoWay}" />

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
ComboBox
Asked by
Lee
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or