Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Count available news items View modes: 
User avatar
Member
Member
blockp-gmail - 5/11/2010 11:23:24 AM
   
Count available news items
I'm using a scrolling News Preview on my page. I'd like to add into the transition, a count showing the current news items I'm on as well as the total number of news items that are being scrolled through (1 of 7, 2 of 7, etc).

Anyone know how to get at those two pieces of information and add them to the transition??

Thanks in advance,
Paul

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/23/2010 2:04:16 PM
   
RE:Count available news items
Hi Paul,

You can use following expression in transformation:

<%# DataItemIndex %> of <%# DataRowView.DataView.Count %>

Best Regards,

Martin Dobsicek