16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 32: Using <strong>Microsoft</strong> Office FrontPage 2003 to Customize SharePoint <strong>Products</strong> 909<br />

Working with Data View Toolbars<br />

The Data View is more that just a great way to present data; it also allows the user<br />

to interact dynamically with the data by grouping, filtering, <strong>and</strong> sorting. These<br />

actions are enabled using the Data View toolbar.<br />

Note Grouping, filtering, <strong>and</strong> sorting can also be done at design time. When<br />

done at design time, these operations determine the shape, contents, <strong>and</strong><br />

order rows in the Data View itself; at run time, these operations affect what<br />

data is presented to the user, not the actual contents of the Data View.<br />

By default, when a Data View is inserted into a page, it does not come with a<br />

toolbar. However, the page author can choose to add one to the view. The following<br />

steps build on the DataView.aspx from the previous section.<br />

To add a toolbar to the Data View<br />

1. Ensure that the Data View Details task pane is displayed for the Data View.<br />

2. In the Manage view settings section at the top of the Data View Details task<br />

pane, click the Style link. This opens the View Styles dialog box.<br />

3. Click the Options tab <strong>and</strong> in the Toolbar section at the top of the dialog box,<br />

select the check box to the left of Show Toolbar With Options For.<br />

4. Filter, Sort, <strong>and</strong> Group are all selected by default. Click the OK button to apply<br />

the changes.<br />

The toolbar has a button to specify the filter <strong>and</strong> two drop-down lists to specify<br />

the sorting <strong>and</strong> grouping. When you click the Filter button in the browser, the Filter<br />

Choices pane is displayed. This allows you to specify a filter on the desired column.<br />

Note the following:<br />

■ Any Data View column can be used for filtering.<br />

■ The user interface (UI) for choosing the filter is a drop-down list. The only possible<br />

filter is of the form column=value, where value is one of the known-toexist<br />

values for that column (<strong>and</strong> therefore is presented as an entry in the dropdown<br />

list).<br />

■ Filter choices are limited to the values on the immediate page.<br />

Sorting is accomplished by choosing a column to sort on from the drop-down<br />

list. A directional arrow appears next to the drop-down list, showing the sort order—<br />

ascending or descending. Clicking the arrow changes the sort order from one to the<br />

other.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!