here is the editor that works with ParamQuery open-source, only thing i'm missing is downArrow navigation within the widget, appears to be picked up by grid instead of the ui widget.
var lookupEditor = function ( ui ) {
var $cell = ui.$cell.css('padding', '0'),
data = ui.rowData,
column = this.colModel[ui.colIndx];
var $inp = $("<input type='text' style='padding:2px;border:0;vertical-align:bottom;width:96%;'/>")
.attr('data-table', ui.dataIndx )
.attr('data-sobjectid', data.Id)
.appendTo($cell)
.val( resolveLookupName(data,ui.dataIndx) ).select()
.autocomplete({
source: function( request, response) {
var which = this.element.attr('data-table');
if ( which == null ) which ='';
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.PQGridComp.lookupSearch}',
request.term,
which ,
function(result, event){
checkErrors( event);
cleanNS( result );
values = result;
response(values);
}
);
},
delay: 1,
focus: function( event, ui ) {
$(this).val( ui.item.value);
},
select: function( event, ui ) {
var id = ui.item.id,
nam = ui.item.value,
sobject = findSobjectById( $(this).attr('data-sobjectid') ),
field = $(this).attr('data-table');
setLookupIdName( sobject, field, id, nam);
},
minLength:2
});
}