3 ms·
I rarely need _simultaneous_ two-way databinding. But I do sometimes need databinding from view to model (when I want users to enter data, and it just fills in
by AndrewDucker 12y ago
I rarely need _simultaneous_ two-way databinding.
But I do sometimes need databinding from view to model (when I want users to enter data, and it just fills in my object), and I sometimes want databinding from model to view (where my data is nicely displayed).
So rather than doing something fiddly and different for each way, it makes more sense to just have 2-way databinding in the first place.
And that then makes it easier for when I _do_ want 2-way databinding - for instance allowing users to enter a filter to narrow down a list.
- itry 12y ago> allowing users to enter a filter Wouldn't it be enough to add a keydown event to the field?