Questions tagged [grandchild]

Grandchild is a child's child.

46 questions
1
vote
0 answers

How to change the location of a grandchild iframe?

Please consider the following example. TopPage (siteA.com) |- iFrameB (siteB.com) |- iFrameC (siteC.com) Top page has iframeB operating on origin. Within iFrameB, there is iFrameC of which inner document location is http://siteC.com Is there any…
1
vote
1 answer

Rails 3 Order Records By Grand-child Count

I'm trying to do some fairly complicated record sorting that I was having a bit of trouble with. I have three models: class User < ActiveRecord::Base has_many :registers has_many :results, :through => :registers #Find all the Users…
Noz
  • 6,216
  • 3
  • 47
  • 82
0
votes
1 answer

How to get the list of children and grandchildren from a nested structure?

Given this dictionary of parent-children relations, { 2: [8, 7], 8: [9, 10], 10: [11], 15: [16, 17], } I'd like to get the list of all children, grandchildren, great-grandchildren, etc. -- e.g. given a parent with an ID 2 I want to…
user7487097
0
votes
0 answers

How to sort object array grandchild on linq

I'm having a problem on sorting objects through grandchild property. I wish to sort the array of Parent through Grandchild birthdate properties. Is there any Linq to this? something like parents = parents.Orderby(gc =>…
0
votes
2 answers

Array of type Grandparent can't access elements from Grandchild

I've created an array with a grandparent type, passed objects that are grandchildren of that type, but I can't access the elements from the child class. These aren't the exact things I'm coding they are just examples. Here is the Grandparent public…
Bread Bouquet
  • 23
  • 1
  • 1
  • 10
0
votes
1 answer

Returning all the grandson in Laravel

in my models, I have those relations: Category -> Subcategories : hasMany Subcategories -> Category : belongsTo Subcategory -> Products : hasMany Products -> Subcategory : belongsTo Category -> Products : hasManyThrough I want to display all the…
Chocogab
  • 5
  • 1
0
votes
1 answer

Filter list by grandchild using LINQ

I need to filter a list by the DamageCodeName field in the DamageCode class. public partial class DamageCategory { public string DamageCategoryId { get; set; } public string CategoryName { get; set; } } public partial class DamageGroup { …
dbay
  • 51
  • 7
0
votes
1 answer

CSS Grid - equal height of table-alike grandchild cells in visually synced rows

Is there a way to automatically keep in sync rows height of table-alike structure between headers and body? I mean to force CSS Grid to keep each header and data row to have equal height, despite them having separate parents? I don't want headers…
ScriptyChris
  • 639
  • 4
  • 16
  • 48
0
votes
3 answers

CSS Select Grandchild Element without adding new HTML, IDs, or !important

I am learning about parent and child elements and I am trying to figure out how to select/style a grandchild element that is nested inside 3 div's without adding additional classes, ID's, or !important to resolve it. The parent div has a class of…
TinaDev
  • 25
  • 3
0
votes
1 answer

How to get the content of specific grandchild from xml file through python

Hi I am very new to python programming. I have an xml file of structure: -
0
votes
1 answer

I want no Parent entity or foreign key on the Grandchild entity

I have three entities, BaseEntity, Child and GrandChild, that are predictably linked together. It goes like this: public class BaseEntity { public string CompanyId { get; set; } public string BaseEntityId { get; set; } …
0
votes
1 answer

MySQL count of grandchild table returning different results

I am developing a PHP forum. This forum uses four database tables: forum, thread, post, user. On my landing page, I have a listing of all forums, plus columns for latest thread (achieved via join and inner join), total threas (simple count…
0
votes
1 answer

List page menu with children and grandchildren in wordpress

Okay so it's been over a year since I made a WordPress theme and now I've started again but I've run into a problem with my menu on pages. This is my current page hierarchy (I'm still only testing hence the names) Home This page *Child 1 …
Hultner
  • 3,710
  • 5
  • 33
  • 43
0
votes
1 answer

MS Access: Execute code for every instance of a subsubform

I've got an MS Access 2013 form containing a child form within a child form (a grandchild), both in datasheet view. Now I've got some controls on the main form with which one should be able to filter the records in both the child and the grandchild…
Nikno
  • 119
  • 1
  • 8
0
votes
1 answer

Flex 3: How to Access a Component's Grandchildren

I need to access topBox's grandchildren and determine whether they're buttons or not. This function below (thank you Flextras.com) grabs topBox's immediate children which are the HBoxes. How do I go one level lower to topBox's grandchildren? Or is…
Laxmidi
  • 2,650
  • 12
  • 49
  • 81