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
8
votes
2 answers

Firebase Countdown Timer Synched Across Multiple Clients

I am going to take a crack at building a penny auction site for a specific niche using angular JS. I am trying to plan the countdown timers and i've been itching for a reason to try out firebase. I had the idea yesterday to have each auction…
7
votes
5 answers

Two way databinding in ASP.NET

Let say that we have an object class Entity { public string ID {get; set;} public string Name {get; set;} } I want to bind properties to two textboxes on a page something like this:
Alexander
  • 1,287
  • 1
  • 15
  • 34
7
votes
2 answers

Two-way data binding for android:enabled attribute

I'm trying to figure out the two-way data binding library in Android. I want to enable/disable the LinearLayout (and the RelativeLayout inside) by changing the android:enabled attribute in the xml. The XML part looks like this:
Marcin
  • 505
  • 8
  • 20
7
votes
2 answers

How to update an object from the UI with Android Data Binding?

I am using Data Binding and I've created a very simple class public class ViewUser extends BaseObservable { private String name; @Bindable public String getName() { return name; } public void setName(String name) { …
7
votes
4 answers

two way binding not working with ng-repeat

I have a simple ng-repeat list, in which i am assigning current list item value to another property on the controller as follows:
  • 7
    votes
    1 answer

    Polymer data binding doesn't work when assigning markup to innerHTML that contains attribute data binding

    What is the simplest way to create data bindings to attributes, in Polymer, when working with innerHTML? This is an example of what i mean - http://jsfiddle.net/ry6og1q9/2/
    usermax
    • 143
    • 1
    • 11
    6
    votes
    2 answers

    How do I bind a Listview SelectedItem to a Textbox using the TwoWay mode?

    I am very new to WPF and testing some things that I would like to include in an application that I will be working on. I have a 2 row ListView (bound to a textbox) with the names Scott Guthrie and Jon Skeet in it. I am trying to select "Scott…
    Nick U
    • 233
    • 1
    • 2
    • 13
    6
    votes
    2 answers

    Cannot find the GETTER for attribute 'app:vm' with value type Boolean

    I'm trying to use native 2-way android data binding in my custom control so I have something like that in xml ... ... Please note, it's…
    6
    votes
    5 answers

    Data binding between two Polymer elements using polymer 1.0

    Question In the below example, how do I bind the obj.name variable of the field in to ? Background: Below is my code. I have two polymer elements. test-element has the data binded to obj.name. test-element2…
    6
    votes
    2 answers

    angularjs databinding for uploadcare.com doesnt work

    I'm trying to integrate an upload script into my page. Im using uploadcare.com. They provided a simple directive but I just can't get it to work: https://github.com/uploadcare/angular-uploadcare/blob/master/angular-uploadcare.js I'm setting…
    Matthias Scholz
    • 1,015
    • 1
    • 13
    • 25
    6
    votes
    1 answer

    Two-way databinding of a custom templated asp.net control

    This question was originally about getting two-way binding to work at all, but due to lack of specific answers and otherwise progress along the way, I've been updating it - You can check the edit history, but I figured this is better for…
    Jason Kleban
    • 20,024
    • 18
    • 75
    • 125
    5
    votes
    3 answers

    How to use Two way data binding with radio button in android

    I am trying to use two way data binding with the radio button. It is working fine with one way like below, android:checked="@{registration.gender.equals(Gender.FEMALE.getValue())}". But My problem is that, I need to set the value of selected radio…
    5
    votes
    2 answers

    Android databinding error

    I have two way databinding observable In last updated sdk i have an issue like this. Who ever encountered this? Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > android.databinding.tool.util.LoggedErrorException: Found data…
    Nivi dimka
    • 85
    • 8
    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
    1 answer

    2-way binding in Vue 2.3 component

    I understand the .sync modifier returned in Vue 2.3, and am using it for a simple child component which implements a 'multiple-choice' question and answer. The parent component calls the child like this:
    dsl101
    • 1,715
    • 16
    • 36
    1
    2
    3
    22 23