thank you. that worked. lastly, how would I clear this grid cell after the selected item was found
editor: {
type: "textbox",
init: function(ui) {
var $inp = ui.$cell.find("input");
//initialize the editor
$inp.autocomplete({
source: (ui.dataIndx == "books" ? books : "/pro/demos/getCountries"),
selectItem: {
on: true
},
}).focus(function() {
//open the autocomplete upon focus
$(this).autocomplete("search", "");
})
ui.$editor.on('autocompleteselect', function(event, ui) {
alert(ui.item.label)
//clear grid cell
})
}
},