Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
-
Sencha User
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)
Virtual Machine No
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
Expected result Newly selected value should be saved
Actual result Old value remains
Test case 180 line stand-alone widget is available online.
Helpful Information Screenshot or video
Live test -
Debugging already done
Possible fix Unknown
-
Unrelated to your report, but the example you linked to,
Code:
http://www.sencha.com/examples-dev/#ExamplePlace:inlineeditablegrid
is running 3.0.0 RC2. A running sample of 3.0.1 is available at
Code:
http://www.sencha.com/examples/#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.
-
Sencha User
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.
-
Sencha User
Nevermind
This problem went away for me once I rewrote the ComboxCell.ComboPropertyEditor as I detailed here:
-
Sencha User
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.
}
});