Sort List items using DisplaySortOrder Property
- Last UpdatedJun 25, 2024
- 1 minute read
In a Process Order list, assume that there are columns like OrderNo, Name, Description, Quantity, Price and Total. By default, the user wants to display the list items in a sorted order whenever a list loads at first time.
Steps
-
Create a Process Order list as follows.
Control
Name
TextInput
Title
IntegerInput
OrderNo
TextInput
Name
IntegerInput
Quantity
DecimalInput
Price
DecimalInput
Total
-
Add a few items in the Process Order list using New option.
-
Open Process Order list. Click Edit to set the DefaultSortOrder property.
-
Set the DefaultSortOrder property as OrderNo, Name, Quantity.
-
Click Save and then click Submit. The Re-Generate Form dialog box appears.
-
Select Yes, regenerate the default form and click OK.
-
The list items are displayed in a sorted order after the Process Order list is loaded.