Setting a label conditionally?
I want to set a label's value dynamically, based on the length of a page list. If the page list has 13 entries/records, I want the label to read "13 Years".
"X Years" where X = number of records in page list.
What's the best way to accomplish this? Is this even possible with a label or do I need to use a different control for this purpose?
***Moderator Edit: Vidyaranjan | Updated Categories***

Hello
You can see the similar kind of example in the UI Gallery.
Just open the UI Gallery landing page and select the option : Grid- Paging - Progressive.
You can see that the total count is displayed along with the grid. Find screenshot.
For details, refer the section pxPaging5 under Data-UIGallery-Features-Repeating class.