Questions tagged [two-way-binding]
351 questions
19
votes
2 answers
DataGridTemplateColumn Two way binding is not working
I've got a DataGrid I've bound to a SqlDataApter. If I set up the XAML for the grid using DataTextColumn as illustrated in the code below it works perfectly

David Potter
- 191
- 1
- 1
- 4
17
votes
1 answer
How to update the text of all EditTexts elements in a RecyclerView with two-way data binding
I have an RecyclerView which holds some CardViews and each CardView contains EditText which multiplies the user given amount times a specific rate (the rate comes from an endpoint and the rate is different per row). For the CardViews I am using data…

Fahri Can
- 431
- 3
- 13
14
votes
5 answers
Angular Two-Way Data Binding and Watching for Changes in Parent Component
It seems there is no way to watch changes in the parent component when using two-way data binding.
I have a custom input component for collecting a tag list. Two-way data binding is setup and working between this component and its parent.
// the…

Ben Racicot
- 5,332
- 12
- 66
- 130
13
votes
1 answer
Cannot assign to read only property 'dataChange' of object '#'
I am trying to use a two way binding in Angular 4. Here is my component code:
@Component({
selector: 'form-validation',
templateUrl: './form.validation.template.html',
encapsulation: ViewEncapsulation.None
})
export class…

fred00
- 571
- 2
- 8
- 23
12
votes
2 answers
Angular 2: how to create radio buttons from enum and add two-way binding?
I'm trying to use Angular2 syntax to create radio buttons from an enum definition, and bind the value to a property that has the type of that enum.
My html contains:

Anthony Brenelière
- 60,646
- 14
- 46
- 58
12
votes
3 answers
How to accomplish two-way data binding in WPF?
I have heard a lot about two-way bindings in WPF, but I'm not entirely clear on how to accomplish it or what it actually means.
I have a ListView with a bunch of items in it. When the user selects a new item, a TextBox in the application will change…

Deniz Dogan
- 25,711
- 35
- 110
- 162
10
votes
2 answers
Two way binding on angular 6 reactive form
I am trying to create a complex reactive form with nested component that is populated with a data object.
The behavior I am trying to achieve is very similar to the two-way data binding of a template-driven form: when the user edits an input of the…

Idan Abrashkin
- 141
- 2
- 6
10
votes
3 answers
How can I bind an ObservableCollection to TextBoxes in a DataTemplate?
I am trying to successfully TwoWay bind an ObservableCollection to TextBoxes in a DataTemplate. I can get the data to display properly, but I am unable to change the list data through the UI. I have a Model class named 'model' which contains an…

Johnathan1
- 2,241
- 5
- 23
- 24
9
votes
3 answers
Handle Model Change in Angular 5 Component (Two-way-binding)
I'm currently working on an angular 5 application. I try to alter a member variable of my component in an input on the view and use the variable in my component after the change.
My structure is as follows:
Folder: my-test
my-test.component.html…

TimHorton
- 865
- 3
- 13
- 33
9
votes
3 answers
Two way binding on custom view
I have a componed view in android contains several textViews and one EditText. I defined an attribute for my custom view called text and getText, setText methods. Now I want to add a 2-way data binding for my custom view in a way its bind to inner…

Alireza Ahmadi
- 5,122
- 7
- 40
- 67
9
votes
3 answers
Two way binding between components in angular 2-4
I would like the child component value to be bound to the parent component. How to accomplish this when @Input() and [(ngModel)] are not enough ?
here is a plunker

Bellash
- 7,560
- 6
- 53
- 86
8
votes
2 answers
How to two way bind a cascading value in Blazor?
I'm playing around with the custom template in Blazor and I'm trying to find to a way to two-way bind a CascadingValue or achieve something similar. Right now I have the following template.
@if (PopupVisible)
{
…

Mylies
- 396
- 4
- 18
7
votes
2 answers
Angular textarea matInput: how can set max length/line + max number of lines
The following html snippet of code:
…

Learning is a mess
- 7,479
- 7
- 35
- 71
6
votes
3 answers
Two-way data binding with converter doesn't update source
I've got a data binding set up with a converter to transform an awkward XML source to a display- and editing- convenient tree of internal classes. Everything works great for reading from the XML source, but I'm having a devil of a time trying to…

dthorpe
- 35,318
- 5
- 75
- 119
6
votes
2 answers
Pass values to child component Angular 7
I went though this, and understand that after declaring a data-bound input property, Angular should automatically update the input value. In the component I created, it doesn't seems like that.
When I click on a item on the grid on the parent it…

Robert Nish
- 81
- 1
- 1
- 6