Author Topic: After 5.0 AutoComplete in celleditor ,event sequence changed?  (Read 2006 times)

ljfreedom

  • Newbie
  • *
  • Posts: 7
    • View Profile
After 5.0 AutoComplete in celleditor ,event sequence changed?
« on: October 16, 2018, 12:26:14 pm »
Hi
In ver 5.0 ,After press 'Enrter'  , the autocomplete  in celleditor  will close , then it trigger sequence is   autocomplete box's change event >pqgrid cell value changed event. but after 5.0 the event sequence becomes : pqgrid cell value changed event>autocomplete box's change event .This cause the autoComplete change event not work.
Please help
Here is the celleditor init code
Code: [Select]
            editor: {
                    type: "textbox",
                    init: function(ui) {
                        var tableID = ui.$cell.parent().parent()[0].id;
                        var $inp = ui.$cell.find("input");
                        $inp.autocomplete({
                            //.....
                            change: function(event, obj) {
                                updRow[ui.dataIndx] = obj.item.label;
                                if (nmeMapping) {
                                    $.each(nmeMapping, function(i) {
                                        if (obj.item[this])
                                            ui.rowData[i] = obj.item[this];
                                        else if (obj.item.extraInfoMap)
                                            ui.rowData[i] = obj.item.extraInfoMap[this];
                                        else
                                            ui.rowData[i] = ''
                                    });
                                }
                            }
                        })
                    }