Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Nested Repeaters Where condition View modes: 
User avatar
Certified Developer 8
Certified Developer 8
richard - 4/21/2010 11:20:40 PM
   
Nested Repeaters Where condition
Hi

I have a nested repeater to show some info from a Custom Table but the WhereCondition does not seem to be working. Can anyone caste any light on if this is the best way to do this and how to get it to work.

This code sits inside the transformation of the Parent Repeater.

<cms:queryrepeater
ID="repeaterMediaType"
runat="server"
QueryName="Chamber.ResourceFileTypes.selectall"
TransformationName="Chamber.ResourceFileTypes.ShowFileThumbNail"
WhereCondition='<%# "ResourceFileType = "+Eval("ResourceType")%>'
>
</cms:queryrepeater>


User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/28/2010 2:28:35 AM
   
RE:Nested Repeaters Where condition
Hi Richard,

It seems the nested repeater is query repeater. Could you please let me know if the parent repeater is also query repeater or if it is CMSRepeater?

Best Regards,

Martin Dobsicek

User avatar
Certified Developer 8
Certified Developer 8
richard - 4/28/2010 5:49:58 PM
   
RE:Nested Repeaters Where condition
The Parent is a CMSRepeater.

I think that what I am doing will only work with a CMSRepeater for the child as you would need to have Deferred Loading ... is this correct?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/4/2010 9:43:42 AM
   
RE:Nested Repeaters Where condition
Hi Richard,

Regrettably, query repeater doesn't have delayed loading property so it is not possible to use it as nested repeater easily, but I have prepared article with description of workaround that you can use to set where condition for nested query repeater. Please see http://devnet.kentico.com/Knowledge-Base/Web-parts---Controls/How-to-use-query-repeater-as-nested-repeater.aspx for more details.

Best Regards,

Martin Dobsicek

User avatar
Certified Developer 8
Certified Developer 8
richard - 5/4/2010 2:18:38 PM
   
RE:Nested Repeaters Where condition
Awesome thanks Martin! Very useful for all kinds of situations.