ChildrenAsTable() method uses wrong data Options
saelfaer
Posted: Monday, July 14, 2008 10:06:44 AM
Rank: Enthusiast

Joined: 5/14/2008
Posts: 30
Location: Brugge Belgium
Hi,

as i already posted this on codeplex, I am not 100% sure why i post it again here
maybe just to let as many people know that i had this issue :)

when listing subnodes from a parentNode trough the ChildrenAsTable function
i wanted to use them in a dropdownlist.
but the parentNode has 2 types of subnodes, so i had to use the nodeTypeAliasFilter
which is the one giving problems :)

the datatable created by the function, somehow starts building its columns from the
first sorted subnode in umbraco itself, no mather if that node matches the nodeTypeAliasFilter
so in case i want to list all 'domainNodes' but the first subnode is a 'hostingNode' it
gives a big error when trying to get hostingNode properties from a domainNode...


temporary solution: i had to create my datatable myself looping trough all subnodes
doing the check myself and adding only the childnodes i need to the table.

but it would be cool if this little error gets fixed somewhere in the future :)

Sander Houttekier, Umbraco Level 2 Certified
tim
Posted: Wednesday, September 10, 2008 9:22:51 PM

Rank: Addict

Joined: 2/19/2007
Posts: 734
Location: Belgium
Fixed this today, so should be in the next nightly

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.