DataGrid.reset

Syntax

reset();

Description

The reset method reloads table data from the source.

Example

To execute the example, the HTML page must contain the DataGrid named grid (see Example of Creating the DataGrid Component). Set the ContainerRendered event handler and reload table data from source:

// Set the ContainerRendered event handler
grid.ContainerRendered.add(function() {
    console.log("ContainerRendered event");
});
// Reload table data from source
grid.reset();

After executing the example table data is refreshed. On refreshing the data the ContainerRendered event occurred, when it is processed, the browser console displays a message about the event:

ContainerRendered event

See also:

DataGrid