PDA

View Full Version : [FIXED] Grid CellEditing editor remains active when you sort grid using column heading



joelennon
4 Dec 2013, 10:13 AM
Ext version tested:

Ext 4.2.2 rev 1144

Browser versions tested against:

Chrome 31.0.1650.57 m

DOCTYPE tested against:

HTML5

Description:

If you have a grid that uses a CellEditing plugin, edit a cell and while the editor is active, click on a column heading to sort the grid. The grid will sort, but the editor will remain active despite the position of the row changing.
As an aside, it would also be nice if we had the ability to cancel the "sortchange" event - if the grid has dirty records that haven't been sync'd with the store (when using remote sorting), it would be nice to be able to confirm with the user that they want their changes to be lost before the sort takes place.

Steps to reproduce the problem:

Go to CellEditing example at http://docs.sencha.com/extjs/4.2.2/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#cell-editing
Activate the cell editor by clicking on any cell in the grid
Click on a column header to sort the grid

The result that was expected:

Editor is deactivated, changes are reverted (or perhaps not - maybe confirm with user?), grid is sorted by selected column heading

The result that occurs instead:

Editor remains active for current item, grid is sorted, editor appears active for incorrect record (although when the change commits it is associated with the correct record)

Gary Schlosberg
4 Dec 2013, 12:30 PM
Thanks for the report! I have opened a bug in our bug tracker.