tracker issue : CF-3798028

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

CFGRID with bound field doesn't reset to page 1 when bind field is updated

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Cody Watkins / Cody Watkins (cgw_bc)

Created: 07/31/2014

Components: AJAX

Versions: 11.0

Failure Type: Usability Issue

Found In Build/Fixed In Build: CF11_Final / CF11 Update5

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Listed in the version Issues Fixed doc
Problem Description:
CFGRID isn't resetting back to page 1 when you update a field that the CFGRID is binded to. It's trying to preserve the current page, but it either shouldn't, or you should be able to specify whether you want the page to be preserved when a bind value is changed.

Steps to Reproduce:
For example take a CFGRID that has a CFSELECT field above it. The CFSELECT is used to filter the results in the CFGRID. The CFGRID calls a CFC function and is binded to the CFSELECT parameter.

Let's imagine the CFSELECT is a filter for "File status". With options "All", "Open files only", and "Closed files only".

On initial load if the filter is "All" (for example), the CFGRID could show 10 pages of results (200 individual row records for example).

But then when you change the CFSELECT to another value such as "Open files only", and the CFGRID updates automatically because of the bind, if there are less than 10 pages of results, the CFGRID returns blank and shows page 0 of 0.

Actual Result:
Blank CFGRID showing page 0 of 0.

Expected Result:
Should change back to page 1 when the new values are reloaded. Worked in CF8.

Any Workarounds:
None. Looking into using javascript code to change the handler dynamically on the fly using ExtJS and then adjusting it to force the page back to 1 before the CFGRID re-queries the CFC.

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

Watson Bug ID:	3798028

External Customer Info:
External Company:  
External Customer Name: cgw_bc
External Customer Email:  
External Test Config: My Hardware and Environment details:

CF11 using Windows Server 2012 R2



This is not fixed in build 11,0,03,291742. What build is it fixed in? Can the "Fixed In Build" field _please_ be populated when tickets are closed? Thanks!, -Aaron
Comment by External U.
11473 | November 06, 2014 08:24:43 AM GMT
fix to be made available with the next CF11 update.
Comment by Piyush K.
11474 | January 13, 2015 06:27:48 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
11475 | February 20, 2015 09:22:34 AM GMT
Verified this is fixed in CF11 Update 5 (build 11,0,05,293506). Thanks!, -Aaron
Comment by External U.
11476 | August 14, 2015 12:04:04 AM GMT