I need an example to help me implement Autocomplete with jqGrid library Lib.Web.MVC.
The functionality is announced in this blog. A nice screenshot is provided but no sample code for these two:
JqGridColumnEditTypes.JQueryUIAutocompleteJqGridColumnSearchTypes.JQueryUIAutocomplete
This code gives an error object referenced not found:
[Required]
[JqGridColumnSortable(true)]
[JqGridColumnSearchable(true, SearchType=JqGridColumnSearchTypes.JQueryUIAutocomplete)]
public string Place { set; get; }
The mentioned blog post contains link to sample project.
In order for
JqGridColumnSearchTypes.JQueryUIAutocompleteto work you need to provide controller and action name as parameters for the attribute, something like this:The action needs to return data in jQuery UI autocomplete compatible format, so something like this:
I hope this answers your question.