-4

I am seeking sample code for adding autocomplete feature to Jqgrid when editing through inline and adding a row using form. Where I tried, got only code to add datepicker.

halfer
  • 19,824
  • 17
  • 99
  • 186
Lolly
  • 34,250
  • 42
  • 115
  • 150
  • 3
    Don't expect us to write any code for you. Look on Google, and start coding yourself. It's usually the best way to learn. – Hidde May 29 '12 at 18:16
  • I am new to Jquery and Jqgrid. I have a autocomplete plugin with me but I am not sure about integrating it. And in google I am not able to find perfect working example. – Lolly May 29 '12 at 18:26
  • Search on google for `jquery autocomplete`, and I get about 2.5 million results, I think all about the thing you are looking for. There are excellent examples in the jQuery docs, the first result you get! Use your brain please! – Hidde May 29 '12 at 18:28

1 Answers1

2

If it will help you you can take a look in the answer which explain how to implement simple and more complex case of usage of jQuery UI Autocomplete inside of jqGrid. In the example will be used dataInit as searchoptions property. Absolutely the same property with the same code can be used inside of editoptions. The corresponding server code is in C#, but I hope you can understand it and implement the same in Java.

In the demo from the "UPDATED" part of the answer you will find an example how jQuery UI Autocomplete will be used in the grid with pure local data.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798