I'm creating objects dynamically and inserting them into an html table, the objects are either labels or linkbuttons, if they are linkbuttons i need to subscribe an eventhandler to the click event, but I'm struggling to find a way to actually add the handler. The code so far is:
WebControl myControl;
if _createLabel)
{
myControl = ...
Often when using software these days, the ESC key will close a dialog without persisting any changes I've made. I like that especially because even though the dialog may have a cancel button on it, I don't necessarily want to reach for the mouse or tab over to the cancel button. It's a nice clean way of saying "Oops, didn't meant to do t...
Hi, I have this small problem with jquery: I need to do something like this:
$(document).ready(function(){
links = {};
links.a = "Link a";
links.b = "Link b";
links.c = "Link c";
for (x in links){
$("#" + x).css("border","1px solid #000");
$("#" + x).click(function(){
alert(x);
});
}
});
</s...
I have a ViewModel class that contains a list of points, and I am trying to bind it to a Polyline. The Polyline picks up the initial list of points, but does not notice when additional points are added even though I implement INotifyPropertyChanged. What's wrong?
<StackPanel>
<Button Click="Button_Click">Add!</Button>
<Polyline ...
I'm trying to set a TwoWay binding to a combo box using only a selection of a collection's objects. Currently, everything works out ok if I just want to bind everything in the colelction, but in the example class below, what if I only want to show items where Active=True? I can filter the items using LINQ like ItemsSource = FROM x IN Col...
I have a TextBox and a Popup control. I want the popup IsOpen property to be bound to the TextBox IsFocused property. In other words, if the textbox has focus, the popup is open. Alternatively, if the popup is in focus, I don't want it to close due to the textbox losing focus. I was hoping to handle this using bindings rather than havin...
The Delphi 2009 XML Data Binding Wizard fails to process a simple XSD which contains a complexContent declaration (Invalid Pointer Operation).
Is it a bug or a know limitation?
Example:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementF...
Hi,
I'm very new in WPF. I've got a ListBox where I want to set a template for an item (I called it Person). A TextBlock is to be used. The person has to public Properties: "Foreground" and "IsOnline". If "IsOnline" is true, I would use the "Foreground" property of the person, otherwise "Gray". That's all. My first template is:
<DataTe...
How to provide an undo / redo using bindings in WPF?
e.g.
You implement a master-detail view with bindings. After editing your changes were saved automatically using binding. Then you want to undo the changes.
Is there something ready-to-use in the binding for WPF? Does WPF provide some structures or interfaces for?
This question is n...
var width = 400;
var height = 400;
Stage {
style: StageStyle.TRANSPARENT
onClose: function():Void {
System.exit(0);
}
scene: Scene {
content: Scribble {}
width: width
height: bind height
}
}
Why does the width work, but the height not?
And, what can I do to fix this? Netbeans is ...
Hi,
I have a custom actionscript object defined as bindable with a number of public properties.
[Bindable]
public class MyObject extends Object {
public var mobileNumber:String;
...
In my mxml I have:
<mx:Script><![CDATA[
import mx.binding.utils.BindingUtils;
import org.test.MyObject;
[Bindable]
private...
Lets say I have an NSArrayController which contains items each with netCost and netProfit properties and I want to create a Total Percent Profit label (containing the sum of the profits divided by the sum of the costs).
In the controller class with a reference to the array controller I've attempted to do this as follows:
+ (NSSet *)key...
I have a dialog that pops up over the main screen (it's actually a user control that appears on the page as per the application demo from Billy Hollis) in my application that has data from the main screen to be edited. The main screen is read only.
The problem I have is that when I change the data in the dialog, the data on the main scr...
For build automation, I would like to invoke the XML Data Binding Wizard in Delphi from a build script. I have found the WSDLImp.exe, but this tool seems to generate WSDL based Delphi code only.
Is the XML schema binding wizard (which generates Delphi code for XSD files) available as a command line tool?
...
So I have an unordered list that I would like to have jQuery highlight the active link on that list. I have animations on the list for mouseenter and mouseleave which increases the font size when the a link is hovered.
I can get the links to stay at their increased size and color by using .unbind on the mouseleave, but when I try to re-...
In WPF I have a Grid with a number of columns defined and the Width of each column is bound to the width of a DataGrid column, like so:
<Grid.ColumnDefinitions>
<ColumnDefinition Width="{Binding ElementName=dataGrid, Path=RowHeaderWidth}" />
<ColumnDefinition Width="{Binding ElementName=Column0, Path=ActualWidth}" />
<ColumnDef...
I'm currenty manage to get some time to work on ASP.NET MVC. I'm doing the
tutorial Create a Movie Database in ASP.NET MVC, which still uses the ADO.NET Enity Model. I managed to create a List View from the LINQ Entity Model. So here is my problem.
The Bind Attribute doesn't work on my SQL Entity.
Original Code with Ado.NET
pub...
Hi,
I have this JList (say MyList) in a JFrame. Im using Netbeans6 GUI builder and I've set a binding for this list.
When run, the binding works fine, and MyList is populated correctly.
Now, what im looking for is a way to add more data to this list from another text box on a button Click. But the problem exists here :
W/o binding i ...
Hi everyone,
I am having a tricky problem, I want some slightly unusual behaviour from a checkbox and can't seem to figure it out. Any suggestions would be most welcome. The behaviour I want is:
The CheckBox is enabled and ready for the user to click, IsChecked represents a bound boolean value stored in a data structure
The user clic...
I know this is a fairly simple question, but I'm sure I'm not the first to have it, and won't be the last, so I thought it might be a good idea to get the answer in Stack Overflow for the benefit of everyone else, as well as not bugging my local Flex guru.
I've got an object that contains a dozen or so fields I want to bind to form elem...