Skip to main content

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.

2-way-object-databinding
-1 votes
0 answers
19 views

Create two-way-binding for custom elements

I want to create a custom element containing an image view and an edit text. The code looks like this: <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="...
holzflo's user avatar
  • 29
0 votes
0 answers
77 views

Windows Forms databinding to textbox with decimal value

I am trying to apply the MVVM pattern to traditional windows forms design. I have a textbox that hold a decimal value and I want to bind it to view model's Amount property. When I enter numbers in the ...
Jason Ge's user avatar
0 votes
2 answers
198 views

.NET Maui CarouselView Problems newbie

I am sorry if this question is a bit newbie. But I have spend like 10 hours trying to understand how to do what I want. I have tried a lot of things with CurrentItem, CurrentPosition, and a lot more. ...
Michael Christensen's user avatar
0 votes
1 answer
92 views

Blazor two-way data binding with InputSelect never enters VM property set

Inside a Blazor component, I'm trying to bind an instance of my viewmodel class to an InputSelect so I can select a value for an enum property. The VM also has a string property I can bind to a text ...
Eric Eggers's user avatar
0 votes
1 answer
58 views

Android EditText-Slider using 2 way binder (Float)

How to create a Slider to set a float value, and an EditText reflecting that float value, leave both of them connected to a ViewModel object float value, that is updated on the run. The float value ...
karnbo's user avatar
  • 191
0 votes
0 answers
19 views

DataBinding to Odate integer in c#

I have a custom databinder that works geat for the integer that is an ODate date type. It displays correctly. How do I get the reverse when I save? private void Binding_ODateFormat(object sender, ...
Kuntry Gator's user avatar
0 votes
1 answer
154 views

How do I create a two way binding list of elements consisting of input boxes using AlpineJs

I need to create a list of input boxes based on a array element. However when using x-for for looping and x-model for binding the elements any changes to the input boxes are not transmitted back to ...
Experimenter's user avatar
0 votes
1 answer
110 views

Blazor two-way binding on a child component with a default value

Given a Child component: <p>Name: @Name</p> @code { [Parameter] public string Name { get; set; } = "Scooby Do"; [Parameter] public EventCallback<string> ...
user978139's user avatar
0 votes
1 answer
91 views

How to propertly get data from editText in data binding(beginner)

I'm a beginner in android programming. I'm trying to build my first app and wanted to implement straight away the right logic. I read about DataBinding and tried to implement this thing in my project. ...
Red_button's user avatar
0 votes
0 answers
122 views

Can't bind to 'ngModel' since it isn't a known property of 'input'. I also import FormsModule in ngModule still giving error

`ngModel not working error image HTML code Typescript page error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input'. <input required #pod="NgModel" pattern=&...
Shubham Arkas's user avatar
0 votes
1 answer
329 views

error: cannot find symbol import com.example.databinding2.databinding.ActivityMainBindingImpl;

I'm unable to resolve this error. I wanted to use two-way databinding in edittext. Here is the code for the layout file. <?xml version="1.0" encoding="utf-8"?> <layout ...
Anmol Agrawal's user avatar
0 votes
1 answer
52 views

Forms controls two-way databinding to class properties has strange behaviour

To learn databinding I have a test-project with copied example code. I have a test class with some properties and on a form I have some textboxes, that should be two-way bound to the class properties: ...
DataSalad's user avatar
2 votes
2 answers
1k views

Difference between Value and @bind-Value?

I am looking at the docs for an InputCheckBox https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.forms.inputcheckbox, and I see that it exposes Value to be bound to a desired ...
Jazz.'s user avatar
  • 480
0 votes
1 answer
131 views

android two-way data binding for checkbox using int

I have a User data class as below and I need to use two-way data binding for the checkbox using the active variable. active == 1, check active == 0, uncheck data class User( var name: String, var ...
AndroidDev's user avatar
0 votes
0 answers
61 views

Control DataBindings doesn't work as expected

I have Dto like this public partial class DepartmentDto { public int IdDepartment { get; set; } public string NameDepartment { get; set; } public string DescriptionDepartment { get; set; } } And I ...
M.Bouabdallah's user avatar

15 30 50 per page
1
2 3 4 5
23