Using jqGrid with autocomplete in edit form

Using jqGrid with autocomplete in edit form

Hi,
I've been working with the jqGrid, looking for an example for an autocomplete in a text field on the edit form.
In the jqGrid documentation there's only an example with a datepicker.
Here is an example with an autocomplete:
in the colModel:
{ name: 'ID_hidden_field', hidden: true, editable: true },
{ name: 'field_name_here', editable: true, width: 235,edittype: 'text', editoptions: { dataInit: function(elem) {
                            $(elem).autocomplete("URL", {
                            width: 250,
                            minChars: 3,
                            selectFirst: false,
                            mustMatch: true
                            });
                            $(elem).result(function(event, data, formatted) {
                            if (data)
                                $("#ID_hidden_field").val(data[1]);
                            }); } }, editrules: { required: true} },


HTH