hi
i want to have a picklist that contains all different entrys in current column. I manged it by this snippet.
autocomplete ... source: function (grid,ui){
var ret = []
var data=grid.getData({dataIndx:[ui.dataIndx]})
$(data).each(function(i,v){if(v[ui.dataIndx])ret.push(v[ui.dataIndx])})
return (ret)}
So far, so good.
Now i am stuck with this:
when i leave the field, i should complete with the first matching value found in the list, without the need to choose by key or mousclick.
Example; i enter a , the list contains Armada, Bravo, Mountain then it should autocomplete with Armada on leaving the field.
Maybe you can provide me a hint.