In this task you will understand the properties of the <SortList> element. In this example we choose the <BaseQuery Name="Fred4Pages" in the FRED4_Config.xml configuration file. |
You will be able to perform this task only if you already performed the TASK: Understand the DirectoryStyleList element, and your screen is as it was on the end of that task. |
1.Expand the <DirectoryStyle Name="List" element, expand the <SortList> and then expand the <Sort Name="Number"> element to review its parts: it contains more elements, such as <SortDescription, with the properties such as PropertyName and IsAscending: Sort properties and elements The <Sort element has a several elements and properties. •Name: the sort name to display in the sort selector on the navigators and listings (mandatory). Note: the sort names must be unique within the parent <SortList> but may be the same in different <SortList> elements. The name appears also in SortName property of ColStyle and DataTemplate. •SortDescription: the element that encloses the sort. The first one is the primary key. •PropertyName: the sort key. Note: not all fields qualify for the sort key. If you put a field that cannot be a sort key and reimport the configuration file, the error is displayed on the next application run, so you will need to remove it. •IsAscending: "true" for A-Z, "false" for Z-A sort. |