PDA

View Full Version : How to completeEdit on combo select



ttbgwt
10 Mar 2011, 6:30 PM
I have a combobox as a column editor in my grid. When I click the combo and choose a new value, the combobox remains in edit state after the select. I put a select listener on the editor combo but can't figure out how to get a reference to the editor to call the completeEdit() method to hide the combo?

haiyupeter
10 Mar 2011, 8:34 PM
maybe you can try

combo.on('select', function() {
editGridPanel.fireEvent('afteredit');
});

ttbgwt
11 Mar 2011, 5:12 AM
I used firebug and got this to work...



listeners:
{
select: function (combo, record, index) {
combo.gridEditor.completeEdit();
},