Whatever message this page gives is out now! Go check it out!

ColdFusion.Grid.refresh

Last update:
May 18, 2026

Description

Manually refreshes a displayed grid.

Function syntax

ColdFusion.Grid.refresh(name [, preservePage])

See also

cfgridColdFusion.Grid.getGridObjectColdFusion.Grid.sortExt

JS - JavaScript Library Documentation
Using HTML grids in the Developing ColdFusion Applications

History

ColdFusion 8: Added this function

Parameters

Parameter
Description
name
The value of the name attribute of the cfgrid tag to refresh.
preservePage
A Boolean value specifying whether to redisplay the current page of data (true), or display the first page of data (false, the default). This attribute applies only if the grid data requires multiple grid pages to display.

Returns

This function does not return a value.

Usage

This function is useful to refresh a grid when an event occurs that changes the underlying data but does not normally trigger a grid update.

Example

The following code snippet comes from an example that lets users delete rows from a grid. When the user selects a grid row and clicks the delete button, the Ajax proxy calls a mycfc.deleteRow function to delete the row from the database. When the function returns successfully, the proxy calls ColdFusion.Grid.refresh to update the grid and remove the row.
<cfajaxproxy bind="cfc:mycfc.deleteRow({deletebutton@click},{mygrid.id@none}" 
 onSuccess="ColdFusion.Grid.refresh('mygrid', true)">

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page