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
3
votes
1 answer

TwoWay Binding is not working if Binding is changed from DataTrigger

I have the following DataTemplate for my Tool Bar Items:
quadroid
  • 8,444
  • 6
  • 49
  • 82
3
votes
3 answers

backbone stickit - reverting model changes

I'm now testing backbone stickit for two-way data binding. Is there a way to revert the changes, for example, while editing a model data through a form, the user press the cancel button, as in the pic below It seems the model was changed on the fly…
jumper rbk
  • 414
  • 4
  • 18
3
votes
0 answers

Bind data to Custom TextBox C#

I written a class named MoneyTextBox that inherits TextBox. Everything is OK but where I'm trying to bind data to the Text property of my MoneyTextBox. In the form which I used to bind data to its controls, even reading data is OK! I mean when the…
ABS
  • 2,626
  • 3
  • 28
  • 44
3
votes
1 answer

Bind CheckBoxes to LongListSelector

I'm trying to bind some CheckBoxes in a LongListSelector. They bind, and the correct CheckBoxes are checked/unchecked when the view is rendered, but I am unable to modify my underlying object by checking/unchecking the CheckBoxes.
Francis
  • 1,214
  • 12
  • 19
3
votes
1 answer

How to create a TwoWay data-binding proxy?

I have the following classes... class ExpressionBinder { public Func Getter; public Action Setter; public T Value { get { return Getter.Invoke(); } set { Setter.Invoke(value); } } public…
2
votes
2 answers

DataGrid binding to List

I need suggestions on the best middle layer between the WPF DataGrid control and an underlying object of type List . Obviously I can't easily connect the two directly, as the DataGrid wants to bind to collection of objects with get/set…
SoConfused
  • 43
  • 5
2
votes
3 answers

Double Databinding Cascading DropDownList to two SqlDataSources in a FormView

I have two cascading dropdown lists I'm attempting to bind to two separate SqlDataSources each. These dropdownlists exist in a FormView's EditItemTemplate. Inside the EditItemTemplate two sqldatasource controls exist that populate the department…
Lucretius
  • 1,053
  • 1
  • 13
  • 26
2
votes
1 answer

Blazor: Binding OnChange events - okay to use EventCallback.Factory.CreateBinder?

I'm new to Blazor and while designing components I ran across an example of someone using a binding method that I wasn't familiar with. They are using EventCallback.Factory.CreateBinder() instead of the binding techniques shown in relevant Microsoft…
2
votes
2 answers

Two way data binding with Vuex-ORM

Does anybody know of a library or an already described pattern for achieving two way data binding in forms when using Vuex ORM? I've found a couple of libraries for helping with this with Vuex, but none specifically for Vuex-ORM…
John Rix
  • 6,271
  • 5
  • 40
  • 46
2
votes
1 answer

Angular: 2-way binding with mat-select not working, assigning value in code causes it to reset in UI

I'm trying to bind a mat-select to an enum value like this: Type {{types[selectedType]?.name}} …
blenderfreaky
  • 738
  • 7
  • 26
2
votes
1 answer

Blazor Component TwoWay Databinding

I've made a Blazor component this way: @functions { [Parameter] string Title { get; set; } [Parameter] EventCallback TitleChanged { get; set; } } Parent: @page "/fetchdata" Parent:
2
votes
3 answers

2 Way data binding not working in ng-select Angular 6

I am using ng-select in my application. My component class is export class ExampleComponent { selectedCoursesList: Course[] = []; courseList: any[] = []; removeCourse( course: Course) { …
2
votes
2 answers

Set WPF Combobox selected item from property setter

I am using WPF with databinding. I have a Combobox bound to a list of strings. I want the selected item in the list to set a field in my View Model. However, I sometimes want to override the user's selection and re-set the selected value in the…
CAS
  • 41
  • 4
2
votes
0 answers

Android Two-way databinding for Nullable Float on EditText

I'm trying to use two-way data-binding on an EditText. However, my variable type is a nullable Float (I'm using Kotlin by the way). I keep getting databinding error, cannot find the getter for android:text with value type of…
hook38
  • 3,899
  • 4
  • 32
  • 52