nested

How do you map a Dto to an existing object instance with nested objects using AutoMapper?

I have the following Dto and entity with a nested sub entity. public class Dto { public string Property { get; set; } public string SubProperty { get; set; } } public class Entity { public string Property { get; set; } public SubEntity Sub { get; set; } } public class SubEntity { public string SubProperty { get; se...

jQuery : loop through nested objects

Hello, I would like to loop trough nested objects. here is my code : var defaults = { toolTips: { printVersion: { toolTip1: { link_s: '#mm_tooltip1_link', tooltip_s: '#mm_tooltip1' }, toolTip2: { link_s: '#mm_tooltip2_link', t...

Google map not firing nested listener

Using Google Maps v3, I'm trying to do the following: Create a new bounds object and fit the map to this. Wait 400ms before panning to one of the LatLngs that forms this bounds object. Wait 400ms before zooming to a new level on this new centre. In doing this I have no problem with the first 2 points above. However, I can't get the l...

PHP foreach with Nested Array?

I have a nested array in which I want to display a subset of results. For example, on the array below I want to loop through all the values in nested array[1]. Array ( [0] => Array ( [0] => one [1] => Array ( [0] => 1 [1] => 2 [2] => 3 ) ) [1] => Array ( [...

rails contact management webapp design help

hi, maybe the rails pros here can help me with the software design of a contact management web app. i want to create Groups, where I can add Contacts to. I thought I generate a Group scaffold and a Contact scaffold with group:references Then I the models to Group: has_many :contacts Contact: belongs_to :group I also set the rou...

Alternative to overriding Render for adding ClientScript.GetPostBackEventReference attribute in nested GridViews

Hi Is there an alternative to overriding the page render method to make my gridview rows clickable. This works fine in single grid view mode, but when nested , although the code steps through and seems ok, I don't get the selected index firing on the nested grid view. Edit: I have tried the following line in RowDataBound, but don't kno...

Parse PHP Array from serialized data

I am using the jQuery plugin from http://mjsarfatti.com/sandbox/nestedSortable/ It does an excellent job on easily sorting the list, but I am having issues with saving it a DB and loading it back up. My question is once you get the array into PHP, serialize it and store it into a database, you end up with something along the lines of a...

what is the purpose of the 'right' value in a nested tree?

If I'm looking for nested nodes of a parent, I'd query for children like this: parent.left < child.left This is always true though: child.right < parent.right So why do all examples I've found run a between query? thanks, Matt ...

How can I call a inner function from the Python shell?

I have some code (that I can't easily modify), of the following form: def foo(x): do_other_stuff_that_I_do_not_want_to_do() def bar(): "do something" str(x) bar() I would like to call bar(), directly, from the Python shell. I don't mind using co_globals, or other internal bits. I have the feeling that this may b...

C# Classes: What implications?

Possible Duplicate: Prefer composition over inheritance? Say I have this class: public class ndata { public int sal; public double cont; public string mytype; } I then have a choice of doing this: public class mydataTWO : ndata { public string a; public DateTime d; } or I can do this: pub...

Recommendations on structure for Mongoid/MongoDB Tree of Tags

Hi, I'm looking for some recommendations on how to structure the tags part of this data model: Here's a simplified version of it: a Site has many Posts (relational association [references_many in mongoid speak]). A Site has a tree of tags a Post has an array of tags (subset of the Site's tags, order doesn't matter) The use cases I...

nhibernate and nested transactions

I know that nhibernate doesnt support nested transactions. Let's say that I got something like this: UserService.BeginTransaction (on current session) UserService.Save UserService->FeedService FeedService.BeginTransaction (on current session) FeedService.Save FeedService.Commit (on the returned transaction in #3.1) UserService->Add...

Delete row in nested Telerik MVC grid

I face a problem - the controller method gets a NULL argument (key field value) from the nested (detail) view. What did I miss? <% Html.Telerik().Grid<mCustomer>() .Name("CustomerGrid") .Columns(columns => { columns.Bound(c => c.CustomerId).Title("CustomerId").Visible(false); columns.Bound(c => c.CustomerNam...

nested LINQ XML subquery not displaying values from root query in asp.net listview?

var subfacets = from l in facets.Descendants("Facet") let FacetName = l.Attribute("Name").Value let DisplayedFacetAttr = l.Attribute("DisplayedName") select new { DisplayedFacetName = (DisplayedFacetAttr != null) ? DisplayedFac...

Is it Possible to Nest Collections within Collections using Wpf DataGrid?

I want a simple sample program that nests collections within collections using Wpf DataGrid. ...

IE7 (IE8 Compatability Mode) bug: crazy amound of width applied to a floated element that is parent to another float.

Here's my problem. It looks perfect in Firefox, Safari, IE8, but in IE7 and IE8 comparability mode, it adds about 4000px of width to the div.team elements nested within the list item. the problem goes away if i remove the span.score elements. The image attached shows the score in the first box in white number text. The top image is th...

jQuery UI IE7 nested unordered list bug

I'm trying to get it so that each sub list can only be ordered within its group. This works perfectly in FF, but in IE it either moves the entire parent(s) or, using e.stopPropagation(); kills the functionality completely within the child. I need the functionality alive within the child. Suggestions? $(document).ready(function() { ...

How can I delete item from a nested XUL tree?

I created a nested tree using XUL (no database was used to store items). I want to delete items from this tree by selecting the item (only 1 at a time) then click delete. I wrote Javascript function to delete as following but it does not work. function delete(){ var tree = document.getElementById("treeId"); currentPos = tree.cur...

WPF: complex tab focus behavior

Guys, What's up :-) Need your help. My control is constructed from nested list boxes and tree views. Each list box / tree view item also contains rich text boxes and other controls. I want to define a 'tab' focus behavior such that when the user clicks 'Tab' the next focusable item (according to an order i define) will become focused...

Nested OL digit.digit style list for IE7 (and below) - Javascript solution?

This was hinted at in another post, but I need some assistance with displaying a list like this in IE7 1. a. b. 1.0 2.0 2.1 2. I think I am limited to JavaScript because of IE7's lack of CSS :before support. For example, this does not work OL { counter-reset: item } LI { display: block } LI:be...