FAQ Database Discussion Community

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 as we type...

Polymer prevent databinding

Data binding is good, very good. But for once it is getting in my way. I have a default array of users that I insert in each item on my page. The idea is that each item has a checkbox for each user. Currently I create my emptyUsers-item like so:...

Updating a polymer element template

Okay, so I have a bunch of polymer customer element siblings as the different pages of my single page app... They are all contained within a core-animated-pages element. I communicate data via a shared custom element that uses core-localstorage as its backend. Now, one one child is done, it fires...

Simple DataBinding in wpf application

Hi I am trying to study simple data binding in wpf. I tried and am not succeeding.. please suggest ways.. <Window x:Class="WpfTestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="250" Width="350"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="70"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="50"/>...

What's the difference between binding to [[var]] and {{var}} in Polymer 1.x?

I am familiar with bindings with curly braces, like {{variable}}, from Polymer 0.5. However, in examples and code snippets for the release version of Polymer, I've begun to notice bindings with square brackets, such as [[variable]], as well. Does {{variable}} mean something different now, or is it the same and...

Angular2 two-way data binding

I know Angular2 doesn't have two-way data binding but is there a way to mimick the two-way data binding behavior from Angular1.x?

TwoWay Binding is not working if Binding is changed from DataTrigger

I have the following DataTemplate for my Tool Bar Items: <DataTemplate DataType="{x:Type viewModels:PopupContextActionViewModel}"> <Grid> <ToggleButton Name="ToggleButton"> <ContentControl Template="{Binding Icon, Converter={StaticResource NameToResourceConverter}}" Margin="5" /> </ToggleButton> <Popup Name="ContextActionPopup" StaysOpen="False" AllowsTransparency="True" IsOpen="{Binding ElementName=ToggleButton, Path=IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> <Border...

Using Data Binding on a WinForm Combox with formatting for adding and removing items

I'm maintaining some old WinForms in NET Framework 3.5 in both Visual Basic and C#, but I'm having a hard time trying to binding to a POCOs data class. I got this (using INotifyPropertyChanged): public string DisplayUnits { get { return _displayUnits; } set { _displayUnits = value; NotifyChange("DisplayUnits"); }...

OpenUI5 binding property with a function, instead of direct access

I would like to bind a property (flag_baz in this case) from a JSONModel to a checkbox. Thing is that the json model looks like this. { foo: "Foo", bar:"Bar", flag_baz : "X" } in this case X means "true" and an empty string means "false" What i would like...