-
20 Nov 2012 9:56 PM #1
Grid inline edit and combo box blur - Value not saving
Grid inline edit and combo box blur - Value not saving
Required Information
Version(s) of Ext GWT Ext GWT 3.0.1
Browser versions and OS (and desktop environment, if applicable)- Chrome 23.0.1271.64, Ubuntu Linux 12.04 (Not reproduced in Firefox 16 nor IE8)
Description
Using a Grid Inline editing on an 'auto commit' list store, a combo box does not appear to save a newly selected value when an adjacent cell on the same row is clicked. Pressing 'Tab' instead has different behaviour and the newly selected value is successfully saved.
Run mode Both DevMode and fully compiled/deployed
Steps to reproduce the problem- On the supplied widget code
- Click on an Integer cell to show a combo box
- Select an item in the combo box
- Use the mouse to click on the next cell on the same row
- The newly selected value is lost and the old value remains
- Repeat the steps above but press 'Tab' instead of clicking and it works fine
Actual result Old value remains
Test case 180 line stand-alone widget is available online.
Helpful Information Screenshot or video- -
Debugging already done- «none»
-
21 Nov 2012 12:36 PM #2
Unrelated to your report, but the example you linked to,
is running 3.0.0 RC2. A running sample of 3.0.1 is available atCode:http://www.sencha.com/examples-dev/#ExamplePlace:inlineeditablegrid
I'm able to reproduce this (Chrome only, as specified), and have filed this internally. We'll update this post when we have a workaround or a fix to report.Code:http://www.sencha.com/examples/#ExamplePlace:inlineeditablegrid
-
26 Jan 2013 2:44 PM #3
Same problem
Same problem
I have this problem too, and clicking tab doesn't seem to solve it. Specifically, this new value that the user entered doesn't seem to be getting added to the ComboBox's ListStore, and because of that it's not sticking and the CombBox reverts to it's previous value.
-
28 Jan 2013 11:35 AM #4
Nevermind
Nevermind
This problem went away for me once I rewrote the ComboxCell.ComboPropertyEditor as I detailed here:
-
14 Feb 2013 11:31 AM #5
Solved it!
Solved it!
I did have this problem. I thought I didn't because I wasn't clicking in the next comboBox, which is key to reproducing this bug. Clicking in the next comboBox will cancel the edit in the previous comboBox, which is a bug, IMO, in com.sencha.gxt.widget.core.client.grid.editing.GridInlineEditing#cancelEditing line 147. That line should be completeEditing() instead.
Here's a workaround:
Code:gridEditor.addBeforeStartEditHandler(new BeforeStartEditEvent.BeforeStartEditHandler<T>() { @Override public void onBeforeStartEdit(BeforeStartEditEvent<T> event) { gridEditor.completeEditing(); // Set the value on the last column we were editing, otherwise it is thrown away. } });
You found a bug! We've classified it as
EXTGWT-2610
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote