The SearchSort tag can only be used within a Template tag or DataList tag. The tag defines how the search and sort panel in the view will look and function. The SearchSort tag attributes provide the information necessary to define how the components of the search and sort panel will look and function, while the tag's inner content, if specified, allow you to use HTML and SearchSort tokens to determine how the components of the search and sort panel are arranged.
<xmod:Template|DataList ...>
...
<SearchSort
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|Inset|Outset"
BorderWidth="size"
FilterExpression="string"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
Height="size"
ReverseSortCssClass="string|Normal"
ReverseSortText="string|Reverse"
SearchBoxCssClass="string|NormalTextBox"
SearchButtonCssClass="string|CommandButton"
SearchButtonText="string|Search"
SearchLabelCssClass="string|Normal"
SearchLabelText="string|Search"
SortButtonCssClass="string|CommandButton"
SortButtonText="string|Sort"
SortFieldLabels="comma-delimited list of sort field labels"
SortFieldListCssClass="string|NormalTextBox"
SortFieldNames="comma-delimited list of field names"
SortLabelCssClass="string|Normal"
SortLabelText="string|Sort"
Width="size"
>
...Display Template (see Remarks)...
</xmod:Template|DataList>
<SearchSort> </SearchSort>
tags, you can use HTML and special tokens to arrange and style the components of the search/sort panel. See the Example for one possibility. Below are the tokens you can use:<xmod:template ...>
...
<SearchSort FilterExpression="FirstName LIKE '%{0}%'"
SearchLabelText="Search For:" SearchButtonText="GO"
SortFieldNames="FirstName,LastName,Zip"
SortFieldLabels="First Name,Last Name,Zip Code">
<table>
<tr>
<td><strong>{SearchLabel}</strong> {SearchBox} {SearchButton}</td>
<td align="right">
<strong>{SortLabel}</strong> {SortFieldList} {SortButton} Reverse {ReverseSort}
</td>
</tr>
</table>
</SearchSort>
...
</xmod:template>