tracker issue : CF-4204168

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

Grid refresh

| View in Tracker

Status/Resolution/Reason: To Fix//PRNeedInfo

Reporter/Name(from Bugbase): Nick D. / ()

Created: 04/09/2019

Components: AJAX

Versions: 2016

Failure Type: Non Functioning

Found In Build/Fixed In Build: update 10 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10

Vote Count: 1

Problem Description: Grid refresh does not honor true/false argument to stay on the same page.

Steps to Reproduce:Open any paging grid and navigate to any page other then 1. Call the ColdFusion.Grid.refresh('myGrid',true).

Actual Result:  Grid will go back to page 1

Expected Result: Grid should stay on on current page

Any Workarounds:
In cfgrid.js , my version at least 
 if(_221)
		 {
                    ////_223.lastOptions.page=1;// ndee commented out did not preserve the page
		    //_223.currentPage=1;// ndee commented out  did not preserve the page
			_223.reload();
		 }
		 else
		 {
		            if(typeof _223.lastOptions !='undefined')  // ndee
				 {  // ndee
				  _223.lastOptions.page=1;
				 }  // ndee
					
			_223.currentPage=1;
			_223.reload({params:{start:0,limit:_222.pageSize}});
			 }

Attachments:

Comments: