I've been puzzling over some odd behaviour with my MVC2 project for the last few nights.
I have an MVC action result that accepts a project ID and a complex Json object, looking like this:
[HttpPost]
public JsonResult AddStory(int projectid, Story story)
{
try
{
Project prj = repository.Single(p => p.ID == projectid);
...
Hi,
I have an entity class. This entity has lots of properties and entity's data is shown to the user in several tabpages of a tab control. I also implement mvvm approach.
When the screen is shown to the user first, I want to bind only the active tab page controls and when the user navigates through tab pages seperate bindings will b...
I have an object which has a property of type ObservableCollection<bool>. It is bound to a list of checkboxes on a form using TwoWay bindings. I would like to add a PropertyChanged notification to this so that if certain values are selected, some other ones get automatically deselected. Is there a way to do this?
The ObservableCollect...
If I have a grid with a list of items (IList<x>) and a textbox on the form, is there a way to bind the data so that as I click a row that the textbox.text gets updated, without doing it explicitly?
In other words, I want to be able to use Binding() or some other way, and not do
OnSelectionChanged
textbox.text = x.somefield
as I will...
Hi all,
I have a viewmodel which implement INotifyPropertyChanged. On this viewModel is a property called SubGroupingView. This property is bound to the selected item of a combo box. When i change the combo box, the source property is being updated fine, but when i change the source property or when the control is initialized, the combob...
I need to create a reusable DataGrid column with a custom CellTemplate. This CellTemplate should, among other things, contain a TextBlock control to which I need to bind values to display in the DataGrid. All examples I've seen so far specified the CellTemplate for a column directly when using it in a DataGrid's Columns property and also...
So, I want to bind self events after Text widget bind it and change text in widget. Usual 'bind' is called before the content in Text widget changes.
Sorry for my poor English
...
I have the following structure.
public class ToolSettings
{
public string Extension { get; set; }
public ObservableCollection<Tool> Tools { get; set; }
}
public class Tool
{
public string Name { get; set; }
public string Command { get set; }
}
// Within app code
public ObservableCollection<ToolSettings> settings { get; set; ...
Hi guys. I have a WPF app with a listbox and a contentcontrol. The contentcontrol content is bound to the listbox and has a datatemplate that displays a textbox whose content is bound to a variable of the selected item in said listbox. So far, everything works well, i.e. when I select an item from the listbox the textbox content changes ...
I've just answered a question over here where I said that there is no functional difference between
{Binding TargetProperty}
and
{Binding Path=TargetProperty}
and, as far as I'm aware what I have written is fundamentally correct. However the idea that one will use the constructor and the other sets the property got me thinking th...
I have a ComboBox that has its ItemsSource bound to a static List<CustomSettings> of options. The ComboBox is part of a form which is bound to a CustomObject class, and one of the properties on that class is a CustomSettingProperty.
I would like to bind the SelectedItem of the ComboBox to the property specified in the CustomObject, how...
I'd like to be able to reuse this XAML rather than making a copy and changing the binding path. What's the solution for this?
I'm want to display a tick or cross for a boolean column in a data grid.
<Image>
<Image.Style>
<Style TargetType="{x:Type Image}">
<Style.Triggers>
<DataTrigger Binding="...
Hello everyone,
I'm having some problems with WPF binding.
I have an assembly with some const properties in class Values, that correspond to columns from datatable.
I want to bind the value from a column to a TextBlock using the const property to specify the column at a ListView ItemTemplate like shown in the code:
xmlns:C="clr-name...
Hi,
I have a list bound to a datarepeater which contains data being scrapped off a web site. Because the scrapping process could take some time, I binding the list to the datarepeater at the outset so the user can start seeing the results.
As I add entities to the list, I'm calling:
bindingSource.CurrencyControl.Refresh();
This is cau...
I am running into the following error when running my ASP.NET application. I am running this using IIS 6.0 on WinXP 64. The assembly is signed and thus needs a strong name, but apart from adding a reference and using the functions in the dll, I don't know how to resolve the error. I have tried installing the assembly in the GAC, but t...
I am trying to get the ID of an element bound with a jQuery delegate() function. I want to pass the element's ID to another function. The ID returned is always "undefined" and I'm not sure why. Here is my code:
$(document).ready(function() {
var timeout = undefined;
$('body').delegate(
'#tab-form input[type="text"]',
'keypre...
My question stems from an earlier client proxy that svcutil generated for me based on a server configuration.
I use a server side certificate credential using a Sql Memebership provider to authenticate the user.
For the bindings I simply used
<behavior name="MembershipBehaviour">
<serviceMetadata httpsGetEnabled="true" />
...
I'm trying to bind some WPF controls to a sealed class provided to me. Because it is sealed, I cannot inherit from it to create a class that implements INotifyPropertyChanged. So I'm not sure how I should go about doing this. Should I create a wrapper that implements INotifyPropertyChanged? Anyone have any tips on what to do?
...
Hi guys,
I have these two classes:
@interface Father : NSObject
{
NSString* name;
NSArray* listChildren;
}
@property (copy, readwrite) NSString* name;
@property (copy, readwrite) NSArray* listChildren;
@end
@interface Child : NSObject
{
NSString* nameChild;
NSImage* picture;
}
@property (copy, readwrite) NSStrin...
Hi everybody,
I have a problem with a bound property of a custom view. The property is bound to an NSArrayController for a core-data entity.
Here's the problem:
In my view, I draw several rectangles. The positions of these rectangles are saved in an entity in core data (as NSValue wrapped NSRects). The rectangles are draggable, and wh...