Questions tagged [two-way-binding]
298 questions
5
votes
2 answers
msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String in data binding?
I am trying to use data binding in the edittext, In the morning it is working fine but suddenly got the error:
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on…
![](../../users/profiles/1640009.webp)
Ankur_009
- 2,841
- 3
- 23
- 44
5
votes
2 answers
Add editing to MVVM in a hierarchical data structure
This question is a follow-up of this older one, and it's more of a confirmation than an open question.
My ViewModel instance has a private instance of the Model, _modelInst.
The ViewModel has exclusive access to the Model's data during editing (so…
![](../../users/profiles/399908.webp)
Martin Hennings
- 14,732
- 8
- 38
- 65
5
votes
3 answers
ListBox TwoWay bind to SelectedItem
I've seen this question asked numerous times and have gone over my code over and over. But when I assign to my SelectedItem-bound property with an object, it does not update the display's selected item. It appears that the ListBox thinks the…
![](../../users/profiles/9970.webp)
Thomas
- 3,272
- 4
- 32
- 45
4
votes
1 answer
Angular: Chained two-way property bind
I am trying to extend 3rd party component with some custom functionality by wrapping it into custom component.
But I am having issues with property binding - how do I create two-way property bind between parent, wrapper, and 3rd party component? (A…
![](../../users/profiles/11602623.webp)
regenbar
- 323
- 1
- 3
- 12
4
votes
1 answer
How to two way bind a cascading value in Blazor
Im playing around with the custom template in Blazor and Im trying to find to a way to two-way a Cascading Value or achieve something similar. Right now I have the following template.
@if (PopupVisible)
{
…
![](../../users/profiles/11069078.webp)
Mylies
- 153
- 1
- 10
4
votes
2 answers
Convert one-way data binding to two-way using Android Architecture Components
I am refactoring my Android app for an University project to use Architecture Components and I am having a hard time implementing two-way data binding on a SwitchCompat. The app has got a simple user interface with a TextView displaying the status…
![](../../users/profiles/5495385.webp)
y k
- 716
- 1
- 10
- 25
4
votes
2 answers
Protractor .sendKeys() not working on inputs with ngModel
I haven't been able to find anything on this topic, so I figured I would ask.
I'm currently writing E2E tests on my Angular 5 application. E2E is being performed by Protractor as configured in a default Angular CLI generator project. I need the…
![](../../users/profiles/3749339.webp)
Nate
- 326
- 1
- 10
4
votes
1 answer
Angular2: how to chain ngModel with two-way bound variable of other component?
I have a main-component which passes a variable to another component sub-component via custom two-way binding. The passed variable is used for an input tag via ngModel.
These two variables are currently not in sync. How can I chain those two…
![](../../users/profiles/1646735.webp)
Pratik
- 575
- 7
- 25
4
votes
3 answers
Bind a control to a single value in a collection/array in WPF
In WPF I have a collection of bool? values and I want to bind each of these to a separate checkbox programmatically. I want the bindings to be TwoWay so that changing the value of the individual item in the collection in code updates the check box…
![](../../users/profiles/251200.webp)
Matt Jenkins
- 2,507
- 1
- 24
- 32
4
votes
2 answers
Dictionary to ListView TwoWay binding - possible?
I'm attempting to bind a Dictionary to a ListView who's item template constist of a grid with 2 textboxes. Ideally I'd like to be able to modify both the key and the value of the KeyValuePair displayed in the ListView . Is that possible?
![](../../users/profiles/142168.webp)
Maciek
- 17,805
- 17
- 59
- 85
4
votes
2 answers
Two way Binding in WPF does not work with static members
Matt Hamilton told me an interesting fact about WPF: binding in two way mode with a static variable is possible in version 4.5.
Unfortunately V4.5 ist still beta, I decided to change my code to get my app finally run correct.
But - still I have…
![](../../users/profiles/1341024.webp)
CodeCannibal
- 287
- 3
- 18
3
votes
1 answer
WPF TwoWay Binding some elements to ObservableCollection
I need bind some ComboBoxes to one ObservableCollection.
I have this ListView.
…
![](../../users/profiles/755223.webp)
algreat
- 7,762
- 5
- 38
- 52
3
votes
1 answer
Vuejs, Dynamic b-table with editable fields and two-way databinding
I'm trying to generate a dynamic b-table with editable fields and with two-way databinding.
I would like to not have any hardcoded values. Now, I have:
…
![](../../users/profiles/11237418.webp)
Louise Nielsen
- 47
- 5
3
votes
1 answer
Why I can not limit an input's value length with Angular NgModel?
I have an input field with two way binding and I want to change the user input to uppercase and limit it to 3 characters. I'm doing this in the setter of the variable. The uppercase replacement works if I try to do a substring it does not update the…
![](../../users/profiles/2010529.webp)
Milhooz
- 33
- 5
3
votes
1 answer
Ternary operator for two way data binding
I am using ternary operator on observable field to set the text to textview in xml.But its gives me following error at compile time.
****/ data binding error ****msg:The expression ((vmEnteredAmountGetJavaLangString0) ? ("") : (vmEnteredAmountGet))…
![](../../users/profiles/4846667.webp)
sanil
- 379
- 1
- 3
- 17