Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Repeater HTML envelope containing number of repeater items View modes: 
User avatar
Member
Member
webservicesyo - 5/11/2009 5:39:07 AM
   
Repeater HTML envelope containing number of repeater items
Hello,

Is there a way I can output the number of records returned by a repeater within the HTML envelope of that repeater?

I want to be able to set a class on the containing element that includes the number of records returned e.g. <div id="container" class="numberofrecords">

User avatar
Member
Member
zhaojicheng-artmtech - 5/11/2009 10:18:23 AM
   
RE:Repeater HTML envelope containing number of repeater items
My personal opinion that you'd better to create a aspx template instated of portal engine.the Portal Engine is simple.but lack some feature.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/25/2009 7:42:54 AM
   
RE:Repeater HTML envelope containing number of repeater items
Hello,

Unfortunately, there is no easy way how to ensure this. You could eventually use BasicRepeater instead of CMSRepater and generate the envelope using header and footer transformation. Then you could add some asp:Literal control into header transformation and write custom code-behind to get the DataSet of repeater and set the number of rows of DataSet to Text property of Literal in order to display it in transformation.

Best Regards,

Martin Dobsicek