Forum


13:08

02/07/2009

Hi folks,
Here is another interesting requirement. By default, the grid's integrated advanced search toolbar provides textboxes & dropdowns., but I need something more. Since the data on which queries are run is huge, my client wants "auto complete" feature in the search textboxes in integrated search toolbar. Have anyone tried this before? Is it as simple as applying a "css class" to the textboxes of the toolbar and integrating it with jQuery "auto complete" plugin(http://bassistance.de/jquery-p.....ocomplete/)? Do you see any problems here?
Please let me know your views.
Regards,
Krishna,
13:19

Moderators
08/10/2009

It's possible and there is a good article for that here:
(it's in russian, but the code snippets are readable and easy to follow). Basically the idea is to locate the search field and then apply the autocomplete() logic to it, e.g.
-
jQuery('#list').jqGrid('searchGrid', {multipleSearch:true
-
, afterShowSearch: function() {
-
var searchDialog = $('#fbox_list');
-
searchDialog.find('select[name=field]').val('city');
-
searchDialog.find('input').val(value);
-
}
-
});
Regards,
Rumen
Trirand Inc
Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller
Most Users Ever Online: 715
Currently Online:
56 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66