PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • "Sortable" column
  • Sort in a browsing Table control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Sortable is used to:
  • Find out whether a column of a Table control is sortable.
  • Make a column of a Table control sortable or not.
A "sortable" column is a column that allows the user to sort the information displayed in the Table control.
WEBDEV - Server code This property is available for the Table controls in Ajax mode only.
Example
// Allow the user to select the "COL_CustomerName" column
// as sort criterion of the table
COL_CustomerName..Sortable = True
Syntax

Finding out whether a column is sortable Hide the details

<Result> = <Column Name>..Sortable
<Result>: Boolean
  • True if the specified column is sortable,
  • False otherwise.
<Column Name>: Character string (with or without quotes)
Name of column to use.

Making a column sortable or not Hide the details

<Column Name>..Sortable = <Sortable?>
<Column Name>: Character string (with or without quotes)
Name of column to use.
<Sortable?>: Boolean
  • True if the specified column must be sortable,
  • False otherwise.
Remarks

"Sortable" column

  • By default, a column is sortable when it is created. This option can be modified in the window editor ("General" tab of the column description).
  • When "Sortable" is checked, the user will have the ability to sort the Table control by clicking the column header.
  • If a column is sortable, an icon representing a double arrow is displayed in the column header.

Sort in a browsing Table control

A column can be sorted by the user only if:
  • The item associated with the column is a key.
  • No filter exists on this data file.
..Sortable can still return and/or be initialized to True. However, no icon is displayed in the column header and the user will not be able to sort this column.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment