Kathy Hughes, MVP

All MindsharpBlogs

SharePoint Encounters

My Links

Archives

Blog Stats

Asia Pacific SharePoint Training

Cats

Citrix

Personal

Resources

SharePoint Training

SharePoint Designer Snippets: Enhance Data View Paging Formatting

When you’re working with data views (or data form web parts), one option is to limit the number of records shown per page. When you do this, SharePoint Designer will include paging navigation for moving backward and forward throughout the entire record set.

In this example, we’ve chosen to limit the number of records to 6 records per page. Figure 1 shows the standard paging navigation on the first page of a record set.

Figure 1

Figure 2 shows the standard paging navigation on the second page of a record set. The options are to use either the forward or backward arrows to go forward or backward, or click on Start to jump to the first page of the record set. The problem was, I found myself clicking on the Start hyperlink to go the previous page rather than the first page.

Figure 2

We can improve the navigation usability by adding some additional hyperlinks, shown in Figures 3 and 4, by making a simple change to the code.

Figure 3

Figure 4


Figure 5 shows where to make the changes in the code view of the page containing the record set. Note, the Start is included by default.

Figure 5

You could also take this further by adding some design formatting, such as color, etc., but this is a 'Start'!


 

posted on Tuesday, January 30, 2007 12:06 PM

Feedback

No comments posted yet.

Comments on this post are closed.
Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments