See also
cfgrid, Dynamically filling form data in Using Ajax form controls and features in the Developing ColdFusion Applications
History
ColdFusion 8: Added this function.
Parameters
Parameter
|
Description
|
---|
query
|
Name of the query whose data is returned.
|
page
|
The specific page of query data to be returned. Pages are numbered starting with 1.
|
pageSize
|
Number of rows of query data on a page.
|
Usage
You can also create the return value for a cfgrid bind CFC without using this function if your query returns only a single grid page of data at a time. For more information see Using Ajax User Interface Components and Features in the Developing ColdFusion Applications.
Example
The following example shows how a CFC function that is called by an Ajax format cfgrid tag bind attribute. uses the QueryConvertForGrid function to prepare query data to return to the grid. The CFML page with the cfgrid tag has the following code: