FieldSortParams Element
The FieldSortParams element returns the sort direction on a list, rendering Asc or Desc based on whether the field has been sorted and the current default sort direction for the field. Rendering of this field is conditional on the current sorting URL sent in the request to the server.
Syntax
<FieldSortParams>
</FieldSortParams>
Related Elements
Parent Elements |
---|
Default |
Example
The following example creates a default URL for a sort on a list. The FieldSortParams element is used to return the sort direction, which is assigned to the SORTINGFIELDS attribute in the resulting <A> tag.
<Default>
<HTML>
<![CDATA[ <A ID="diidSort ]]>
</HTML>
<Property Select="Name" />
<HTML>
<![CDATA[ " TITLE=]]>
</HTML>
<HTML>
"Sort by
</HTML>
<Property Select="DisplayName" HTMLEncode="TRUE" />
<HTML>
<![CDATA[ " SORTINGFIELDS=" ]]>
</HTML>
<FieldSortParams />
<HTML>
<![CDATA[ " HREF=" ]]>
</HTML>
<PageUrl />
<HTML>?</HTML>
<FieldSortParams />
<HTML>
<![CDATA[ "> ]]>
</HTML>
</Default>