ColdFusion 9.0 Resources |
ColdFusion.Grid.refreshDescriptionManually refreshes a displayed grid. Function syntaxColdFusion.Grid.refresh(name [, preservePage]) See alsocfgrid, ColdFusion.Grid.getGridObject, ColdFusion.Grid.sort, Ext JS - JavaScript Library Documentation, Using HTML grids in the Developing ColdFusion Applications HistoryColdFusion 8: Added this function Parameters
ReturnsThis function does not return a value. UsageThis function is useful to refresh a grid when an event occurs that changes the underlying data but does not normally trigger a grid update. ExampleThe 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)"> |