Questions tagged [2-way-object-databinding]

Two-way data binding (bidirectional data binding) refers to two components acting as the source object for the destination properties of each other.

333 questions
4
votes
2 answers

WPF RadioButton known issue: why the old property value seems still binding after property changed

Thanks. I hope I could upload the whole solution for I have prepared one before open this question. but I didn't find how. I will copy all the code as posible as I can here. The question is: I think this is an easy replicated issue within WPF. I…
3
votes
1 answer

Data binding not working with Capital Letter package name

I have a Android project who's package name is kind of like this com.example.MyPackage where as MyPackage has two capital letters M and P, Due to them i am not able to use data binding. When i add data binding and build my project it says not able…
3
votes
1 answer

Clear input VUE component data from parent

I'm a newbie of Vue, and I'm trying to simply clear the data of input component once I've submitted, but it seems I'm missing something, because since it's parent data is cleared, I still see the filled value of the input component. Here is a living…
vitto
  • 19,094
  • 31
  • 91
  • 130
3
votes
1 answer

Ionic 4: Ion-checkbox checked not updating from ionchange

This is how I create a list with checkboxes to check/uncheck employees. I am binding the checked property of an employee to the checkbox.
3
votes
1 answer

What is Two Way (2-way) data binding in ASP.NET?

What is 2-way data binding in ASP.NET. I heard Bind() is two way data binding approach. How it is different from databinder.eval or Eval()? What is the advantage of 2-way databind and in what kind of situation one should go for 2-way data binding…
Thomas
  • 33,544
  • 126
  • 357
  • 626
3
votes
1 answer

Angular 2+ - Limit textarea value in columns and rows

I am currently facing the following problem. I have a textarea and I want not only to limit the size of the textarea with the default attributes rows and cols, but I also want to prevent the user from entering more characters than the ones defined…
relief.melone
  • 3,042
  • 1
  • 28
  • 57
3
votes
3 answers

Why is it necessary to create a function in angularjs to return sum of added numbers?

I have been using angularjs in applications for a while, but suddenly i am all lost with this simple illusive nature of angular. This is my code :
Prabin Upreti
  • 498
  • 5
  • 16
3
votes
1 answer

Android data binding: can't find setter for attribute android:onClick

I'm getting this error: Cannot find the setter for attribute 'android:onClick' with parameter type android.view.View.OnClickListener on android.widget.Button. file:/home/itstym/ApkProjects/Reminder/app/src/main/res/layout/activity_main.xml…
Ankur_009
  • 3,823
  • 4
  • 31
  • 47
3
votes
1 answer

How to test Angular 2 two way binding input value

I am trying to write a test for my component to test that angular two way binding is working. On one side I have a test that looks like that (and it passes): it('should bind displayed value to the SearchComponent property', () => { …
eddyP23
  • 6,420
  • 7
  • 49
  • 87
3
votes
1 answer

How to reflect change from child to parent in Polymer

The current code is below. I have element-value in the main file. This value is passed to the child elements app-element and from there to app-element-add. The value changes in app-element-add. But I cannot get the value reflected in the main…
user2536851
  • 314
  • 3
  • 11
3
votes
1 answer

Angular2 Two way bindings doesn't work on Firefox

I am a newee using Angular 2. I developped some forms with Typesript and it is working with Chrome but doesn't with FireFox (version 45). First of all, I tried the "two way" data bindings with both browsers : Chrome has a correct behavior but…
youza
  • 53
  • 1
  • 10
3
votes
1 answer

Two-Way Data Binding: View is missing user defined type

Today I found out about the very-recently-introduced two-way data binding capability in the Android Studio preview, and decided to give it a try. I have a very simple layout (code below), for composing and sending messages. What I was trying to…
3
votes
1 answer

Android data binding two-way not working

I am trying to use two-way data binding for editing user data. I am able to show the POJO contents in the view but the changes made by user are not able to capture back with POJO. public class MainActivity extends AppCompatActivity { …
3
votes
2 answers

Custom cell is not updating viewmodel when user enters input into cell

I am new into MVVMCross(Xamarin.iOS). So, I could be in wrong direction. If somebody can point me in right direction or point out what I am doing wrong. I have already taken a look over "CustomerManagement" and "Collection" sample of MVVMCross.…
Iducool
  • 3,543
  • 2
  • 24
  • 45