Questions tagged [two-way-binding]

351 questions
0
votes
1 answer

Angular: Cannot change value of bound (=) variable in directive from transcluded child of second directive with shared scope

This is a complex question so I apologize for the complicated-sounding title. Basically I have this situation: I have a directive with scope: false, transclude: true (I'll call this Directive1) Directive1's template references a second directive…
omatase
  • 1,551
  • 1
  • 18
  • 42
0
votes
1 answer

list of events for ngModel in two-way data binding

In two-way data binding using ngModel is actually
Manu Chadha
  • 15,555
  • 19
  • 91
  • 184
0
votes
1 answer

How to fill input fields correctly with a preset (and update them) using AngularJS?

Please, check this JSFiddle. When you add a dim preset, it is added correctly to $scope.packData, but it won't fill correctly the input fields. After that if you try to update the $scope.packData directly from the input field, it won't work. It does…
0
votes
1 answer

Two way binding in dynamic angular directive

So, my goal is to ng-repeat over an array of activities and display a specific directive based off of the activity type. Right now, I'm just testing the idea out to see if it is viable. I can display a directive dynamically, but the key is I want…
ScubaSteve
  • 7,724
  • 8
  • 52
  • 65
0
votes
2 answers

wpf twoway binding and update from code-behind

I've ToggleButton defined like this in XAML: and 'DateFilter' defined like this: public Boolean DateFilter { get; set; } When I click the toggle-button,…
Fred
  • 596
  • 1
  • 6
  • 19
0
votes
2 answers

TwoWay MultiBinding

Playing with MultiBinding: What I want: clicking either checkbox should toggle all others. Problem: clicking A doesn't change B, clicking B doesn't change A. Result works. Question: how would I fix it, while still using MultiBinding? P.S.: this is…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
0
votes
2 answers

Combo Box Two Way Binding resets Properties

I have a combo box in a datagrid located in an activity. Based on combobox selection I populate another grid with controls programatically. User enters some data in these controls and then saves it. The object that the combo box is bound has many…
Syed Osama Maruf
  • 1,895
  • 2
  • 20
  • 37
0
votes
1 answer

C# MVVM TreeView TwoWay-Binding of hierarchical data

I googled for an answer to this for more than two weeks now. This usually means either I am blind or the idea is absurd. Anyways: In a middle-sized, quite flexible project I'm storing configuration data in a hierarchical structure in the like of…
Martin Hennings
  • 16,418
  • 9
  • 48
  • 68
0
votes
1 answer

TwoWay Binding WPF Treeview

WPF beginner here. I managed to bind a TreeView control to a DataViewManager using the code shown at the end of this post. Everything works fine when populating the TreeView control initially but I want to implement two way binding so that I can use…
timur
  • 1
0
votes
1 answer

WPF Bind User Control Coordinates

I have a User Control added to a Canvas. In another area of the application I have two TextBoxes that will get 2 values : X and Y. I need a two-way binding between the user control's top left corner coordinates and those 2 textboxes. I don't mind…
morsanu
  • 975
  • 20
  • 35
0
votes
0 answers

ConvertBack not been called?

I have a Grid in ControlTemplate like this
0
votes
1 answer

Twoway multibinding validation

I have this case where there is a multibinding for ex, textbox1 which value depend on textbox2 and textbox3 and the binding is two way, all textbox applied the same validation rule for ex error if minus. somehow if textbox1 got updated the textbox2…
Kairu
  • 1
0
votes
2 answers

WPF TwoWay Binding change value in PropertyChanged

I have a WPF application, and in this app, I have created a custom UserControl. This Control has the ability to load a defined Layout from XML. I would like to have a BOOL DependencyProperty on the UserControl which I can set true, and it would then…
Duncan
  • 45
  • 5
0
votes
1 answer

wpf twoway bound DependencyProperty setcurrentvalue not working

I'm working on a custom behavior for the visiblox chart. This custom behavior has a dependency property Value that identifies the position of a cursor that consists of vertical line draw in the chart. This cursor follows the mouse if I set the…
maykonvs
  • 31
  • 2
0
votes
2 answers

Inverted TwoWay-MultiBinding

I'm trying to express an enumeration property in my view-model as a set of radio buttons in my view. So far, so good; I can express that with a two-way MultiBinding: (rb1.IsChecked, rb2.IsChecked, rb3.IsChecked) <-> vm.Value The multi-binding used…
O. R. Mapper
  • 20,083
  • 9
  • 69
  • 114