dojox/grid/enhanced/plugins/filter/FilterLayer.ServerSideFilterLayer (version 1.10)

Usage

var foo = new FilterLayer.ServerSideFilterLayer(args);
dojox/grid/enhanced/plugins/filter/FilterLayer
Parameter Type Description
args undefined

Property Summary

Method Summary

  • _fetch(userRequest) Implementation of _StoreLayer._fetch
  • _unwrap(nextLayer) Do the actual unwrapping to the store.
  • _wrap(store,funcName,layerFuncName,nextLayer) Do the actual wrapping (or 'hacking' if you like) to the store.
  • command(cmdName,cmdContent) get/set a command (a name-value pair)
  • enabled(toEnable) Overrided from _StoreLayer.enabled
  • filterDef(filter) See _FilterLayerMixin.filterDef
  • initialize(store)
  • invalidate()
  • name() Get the name of this store layer.
  • originFetch()
  • uninitialize(store)
  • useCommands(toUse) If you only want to modify the user request, instead of sending a separate command to server before fetch, just call: this.useCommand(false);

Event Summary

Properties

__enabled

To control whether this layer is valid.

_filter

The filter definition

_originFetch

The original fetch function of the store.

_store

The wrapped store.

_url

The url of the server

layerFuncName

Methods

_fetch(userRequest)

Implementation of _StoreLayer._fetch

Parameter Type Description
userRequest keywordArgs
Returns:keywordArgs
_unwrap(nextLayer)

Do the actual unwrapping to the store.

Parameter Type Description
nextLayer undefined
_wrap(store,funcName,layerFuncName,nextLayer)

Do the actual wrapping (or 'hacking' if you like) to the store.

Parameter Type Description
store undefined

The store to be unwrapped.

funcName undefined
layerFuncName undefined
nextLayer undefined
command(cmdName,cmdContent)

get/set a command (a name-value pair)

Parameter Type Description
cmdName string

The name of the command

cmdContent anything
Optional

The content of the command

Returns:any | undefined

The content of the command if cmdContent is undefined

enabled(toEnable)

Overrided from _StoreLayer.enabled

Parameter Type Description
toEnable bool
Optional
Returns:undefined
filterDef(filter)

See _FilterLayerMixin.filterDef

Parameter Type Description
filter (_ConditionExpr | null)
Optional
Returns:null
initialize(store)
Parameter Type Description
store undefined
invalidate()
name()

Get the name of this store layer. The default name retrieved from class name, which should have a pattern of "{name}Layer". If this pattern does not exist, the whole class name will be this layer's name. It's better to override this method if your class name is too complicated.

Returns:any | undefined

The name of this layer.

originFetch()
Returns:undefined
uninitialize(store)
Parameter Type Description
store undefined
useCommands(toUse)

If you only want to modify the user request, instead of sending a separate command to server before fetch, just call:

this.useCommand(false);
Parameter Type Description
toUse Boolean
Optional

If provided, it's a setter, otherwise, it's a getter

Returns:boolean

Events

onCommandError(error)

handle errors when sending commands.

Parameter Type Description
error Error
onCommandLoad(responce,userRequest)

override from _ServerSideLayer.onCommandLoad

Parameter Type Description
responce (in)string
userRequest (in | out)keywordArgs
onFilterDefined(filter)
Parameter Type Description
filter undefined
onFiltered(filteredSize,totalSize)

Called when store data is filtered. This event is before onComplete, after onBegin.

Parameter Type Description
filteredSize Integer

The number of remaining fetched items after filtering.

totalSize Integer

The number of original fetched items.

Error in the documentation? Can’t find what you are looking for? Let us know!