Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Nested Repeaters and passing custom values View modes: 
User avatar
Member
Member
alex-r42 - 5/13/2011 9:01:45 AM
   
Nested Repeaters and passing custom values
Hello,

I have a nested repeater where the inside repeater is putting out "pages" of 5 items. Is there a way for the inside repeater to know the DataItemIndex of the external repeater? If not, is there a way to pass along a custom value to the internal repeater.

The goal is that the internal repeater spits out:
row 1 page 1, row 1 page2
row 2 page 1, row 2 page2
and so on.

thanks,
Alex M

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/16/2011 7:25:21 AM
   
RE:Nested Repeaters and passing custom values
Hello,


I am not sure how it should work. If you want to design the repeter like you mentioned, you can design the transformation of external repeater like:

<table>
<tr>
<cms:CMSRepeater .....
</tr>
</table>

and the transformation of inner repeater:

<td>
..content..
</td>

Is there any issue with that?


Best regards,
Helena Grulichova