tracker issue : CF-3712909

select a category, or use search below
(searches all categories and all time range)
Title:

cfgrid:pagination does not work with JS binding.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Piyush Kumar Nayak)

Created: 02/25/2014

Components: AJAX, UI Components

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 288701 /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Listed in the version 11.0.03.292480 Issues Fixed doc
Problem: cfgrid:pagination not working with JS binding.

Method:
<cfajaxproxy cfc="places" jsclassname="dashboardUser" >
<html>
	<head>
		<script language="javascript">
		GetData = function(page,pagesize,sort,sortdir)  
		{
			var gridProxy = new dashboardUser();
			gridProxy.setHTTPMethod("GET");
			result = gridProxy.getData(page,pagesize,sort,sortdir);
			return result;
		}
		</script>
	</head>
<body>
	<cfset variables.gridargs = {
		width="400",
		bind="javascript:GetData({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"}>
	<cfform name="form01" id="form01">
		<cfgrid  format="html" name="grid01" attributeCollection="#variables.gridargs#" > 
			<cfgridcolumn name="Email" display="true" header="Email">
			<cfgridcolumn name="LastName" display="true" header="Last Name">
			<cfgridcolumn name="Emp_ID" display="true" header="Emp ID"  >
			<cfgridcolumn name="FirstName" display="true" header="First Name">		
		</cfgrid>		
	</cfform>				
</body>
</html>
<!------------------------ places.cfc ----------------------------->
<cfcomponent>
    <cffunction name="getData" access="remote" output="false">    
        <cfargument name="page">
        <cfargument name="pageSize">
    	<cfargument name="gridsortcolumn">
    	<cfargument name="gridstartdirection">
        <cfset startRow = (page-1)*pageSize>
        <cfset endRow = page*pageSize>
        
        <cfquery name="team" datasource="ajax">
             SELECT Emp_ID, FirstName, LastName, EMail
             FROM Employees
        </cfquery>
    	
        <cfreturn QueryConvertForGrid(team, page, pageSize)>
    </cffunction>
</cfcomponent>

Result: The grid displays 10 rows (default pagesize is 10), but the pagination bar does not show an option to navigate to page 2.

Expected:
The pagination bar should display an option to display the remaining rows in the next page, as it does in CF10.

Workaround: n/a

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3712909

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

Verified this is fixed in CF11 Update 3 (build 11,0,03,292024(PreRelease)). Thanks!, -Aaron
Comment by External U.
13233 | November 08, 2014 12:22:21 AM GMT