View Full Version : Editing Grid example

25 Apr 2007, 9:17 AM
In the grid example "inline editing", if you double click in the "light column" a combo box comes up. Once you select a light value, the combo box collapses. But it doesn't go away. Is there a way to get the Editor to destroy the combobox on collapse rather than leave it?

25 Apr 2007, 10:40 AM
Selecting a value doesn't necessarily imply that you're done editing. You could listen for the combo's select event and then call stopEditing()

25 Apr 2007, 12:11 PM
This works, and editing another cell works, but I'm wondering if the grid.stopEditing alone will have any side effects?

statuscombo.on('select', function() {
}, this,true);

25 Apr 2007, 12:39 PM
I don't think so. Looking at the code, it calls completeEdit on the editor, which persists the value and fires the necessary events.