JavaScript

{grid.object}.refresh Method

Syntax

{grid.Object}.refresh()

Description

Refreshes the data shown in the Grid.

Discussion

Does an Ajax callback to get up-to-date data from the database. Contrast with the .refreshRow() method which refreshes a single row. Summary values will be recalculated. Any records that have been added since the last refresh, that do not satisfy the current filter condition will not be redisplayed.

 Example

You can pass in an optional argument of true/false to specify if the list of choices for dropdownboxes, checkboxes and radio buttons should be refreshed. If you do not pass in an argument, the lists are not refreshed.

{grid.Object}.refresh();

refresh choices for dropdownboxes, checkboxes and radio buttons

{grid.Object}.refresh(true);

See Also