TreeListBase.DataRequest

Syntax

DataRequest: function(sender, args);

Parameters

sender. Event source.

args. Event information:

Description

The DataRequest event occurs before changing sorting.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Set event
Tree.DataRequest.add( function(sender, args) {
  console.log("DataRequest event:");
  console.log(args);
});
// Initialize event
Tree.requestData([0], 0);

After executing the example the DataRequest event is added.

See also:

TreeListBase