Check documentation for the latest version of dhtmlxSuite SortInterface Object DHTMLX Docs

SortInterface Object

add

adds a new sorting rule to collection

<cfset sort.add("name","type")>

Parameters:

  • name - name of the field.
  • type - sorting type: ASC or DESC

clear

clears collection (deletes all specified sorting rules).

<cfset sort.clear()>

Parameters:

  • none.

index

check if there are some rules in collection for the specified field and returns related hash.

<cfset index = sort.index("name")>

Parameters:

  • name - name of the field Returns:

  • true - if collection contains rule(s) for the specified field.

  • false - if collection doesn't contain any rules for the field.

rules

array of all specified sorting rules.

<cfset name = sort.rules[1]["name"]>
<cfset sort.rules[1]["direction"]="DESC">

Properties:

  • name - name of related field
  • direction - direction of sorting
Back to top