K2

Displaying Page Count on a K2 SmartForms ListView

Show Total Number of Pages on K2 SmartForms

K2 SmartForms provide a lot of customisation, not all of it is easy to find and most people are not aware of all the tools and options made available by K2.

A good example of one of these harder-to-find options is changing a K2 SmartForms ListView with paging enabled to also show the total number of pages.

Show Total Number of Pages on K2 SmartForms - K2 SmartForms ListView Paging

This setting is not part of the standard ListView properties UI, you have to open the web.config file located in ..K2 blackpearlK2 smartforms Designer and change the “SmartObject.RuntimeListViewRowCount” property (in the AppSettings section) to true.

Show Total Number of Pages on K2 SmartForms - K2 SmartForms ListView Paging

Show Total Number of Pages on K2 SmartForms – K2 SmartForms ListView Paging

Once you have changed this property and saved the file, all K2 SmartForm ListViews in your application making use of paging will now display the current page together with the total number of pages for that specific list.
Show Total Number of Pages on K2 SmartForms - K2 SmartForms ListView Paging

You may also like

2 comments

Leave a comment

PODCAST  |  Why you need to establish a K2 Center of Excellence today

Interview with Arno van Rooyen, CEO, Velocity