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…
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…
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…
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…
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) {
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…
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…
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…
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…
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?
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…
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.
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: