I’ve used jquery UI autocomplete in different situations.
I’ve customized the results and I’ve grown to love it.
Now I would like to use it in conjunction with jqGrid.
Basically, I would like the user to insert some text in a textbox, and while he/she is doing that the jqgrid loads the data.
I know I could create my own jquery plug-in and achieve the same result but, maybe, someone has already done what I am trying to get.
Thanks
Why not bind the jqGrid to the data object found in the callback function of the autocomplete source. Below I have a text box for somebody to search for users. It makes an ajax call to a WCF wervice called SearchUsers. On the ajax call’s success “function(data)….” is called, with “data” being the data returned.
In the anonymous function “function (data)” I am setting my existing jqGrid’s data to the autocomplete data and then refreshing the grid, where my grid is defined as follows: