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
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: