ASPX templates
Version 7.x > ASPX templates > Limit sub-item depth in Hierarchical viwer View modes: 
User avatar
Certified Developer v7
Certified  Developer v7 - 10/23/2013 11:30:12 AM
Limit sub-item depth in Hierarchical viwer
I've got a hierarchical viewer on a page with 2 levels of items (Category and Product). With my 2nd level items (Products) I want to limit the number of these shown to the top 4.

How can I go about making this restriction as I can't find a way to do this in the UI and nothing is jumping out at me in the ASPX template either.


User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 10/24/2013 2:38:45 AM
RE:Limit sub-item depth in Hierarchical viwer

Thank you for your message.

Unfortunately you cant limit the second level in the hierarchical viewer, you can only limit the overall number of document in webpart settings.

I can however offer you an alternative using nested controls. You would basically use standart repeater to display categories and then in this transformation you would register a new repeater for product. We have a documentation for this scenario - please see

Kind regards,
Richard Sustek