Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Nested Repeaters View modes: 
User avatar
Member
Member
Binary - 6/20/2010 10:03:55 AM
   
Nested Repeaters
hi guys,

I have a file Library which contains categories , inside each category multi and different types of files

lets have the following example

Category 1
----- File 11
----- File 12
Category 2
----- File 21
----- File 22

I had place a CMSRepeater with the following Transformation

--------------------------------------
<h2 class="title"><%# Eval("DocumentName") %></h2>
<ul class='mceventslist' style="margin-bottom:20px">
<cc1:CMSRepeater ID="CMSDataList1666" runat="server" ClassNames="cms.file" WhereCondition='<%# "NodeParentID= "+Eval("NodeID")%>'
TransformationName="cms.file.FileListForMediaCenter" >
</cc1:CMSRepeater>
</ul>
-------------------------------------------

the Path= to the Parent of Category 1 and 2 /%

what I get from that is

Category 1
File11
File12
File21
File22

Category 2
File11
File12
File21
File22



and what I needed is

Category 1
File11
File12

Category 2
File21
File22

here is a link http://www.alfozan.com/Media-Center/Downloads.aspx
please advice ASAP

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/20/2010 2:44:14 PM
   
RE:Nested Repeaters
Hello,

Could you please remove the WhereCondition property and instead of that put "CMSDataList1666" into "NestedControlID" property of outer repeater? It should ensure that children of item currently processed by outer repeater is displayed in nested repeater.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Binary - 6/21/2010 5:21:19 AM
   
RE:Nested Repeaters
awesome , it worked , thank you