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...
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...
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...
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
(
[...
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...
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...
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...
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
...
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...
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...
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...
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...
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...
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...
I want a simple sample program that nests collections within collections using Wpf DataGrid.
...
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...
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() {
...
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...
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...
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...