gridx
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

gridx.modules.SingleSort

Object » _Module » gridx.modules.SingleSort
dojo.require("gridx.modules.SingleSort");
Defined in gridx/modules/SingleSort.js

This module provides the single column sorting functionality for grid.

Property Summary

Method Summary

Attached Objects

Properties

columnMixin
Overrides _Module

Methods

_initHeader
Overrides _Module
ParameterTypeDescription
colId
_onClick
Overrides _Module
ParameterTypeDescription
e
_onKeyDown
Overrides _Module
ParameterTypeDescription
e
_updateHeader
Overrides _Module
ParameterTypeDescription
colId
isDescending
clear
Overrides _Module
Clear sort.
ParameterTypeDescription
skipUpdateBodyIfset to true, the grid body will not automatically be refreshed after this call, so that several grid operations could be done altogether without refreshing the grid over and over.
getAPIPath
Overrides _Module
getSortData
Overrides _Module
Returns Object[]|null: An array containing the sort info
Get an array of objects that can be accepted by the store's "sort" argument.
isSorted
Overrides _Module
Returns Number: Positive number if the column is sorted ascendingly; Negative number if the column is sorted descendingly; Zero if the column is not sorted.
Check wheter (and how) the grid is sorted on the given column.
ParameterTypeDescription
colIdStringThe columnn ID
load
Overrides _Module
preload
Overrides _Module
sort
Overrides _Module
Sort the grid on given column.
ParameterTypeDescription
colIdStringThe column ID
isDescendingBoolean
Optional.
Whether to sort the column descendingly
skipUpdateBodyBoolean
Optional.
If set to true, the grid body will not automatically be refreshed after this call, so that several grid operations could be done altogether without refreshing the grid over and over.