Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
jqGrid with auto complete feature in search bar.
23/11/2009
13:08
Avatar
novogeek
Hyderabad, Andhra Pradesh
Member
Members
Forum Posts: 10
Member Since:
02/07/2009
sp_UserOfflineSmall Offline

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,

http://www.novogeek.com

23/11/2009
13:19
Avatar
Rumen[Trirand]
Moderator
Members

Moderators
Forum Posts: 81
Member Since:
08/10/2009
sp_UserOfflineSmall Offline

It's possible and there is a good article for that here:

http://ow.ly/163wCH

(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.

  1.  jQuery('#list').jqGrid('searchGrid'{multipleSearch:true
  2.        , afterShowSearch: function() {
  3.             var searchDialog = $('#fbox_list');
  4.             searchDialog.find('select[name=field]').val('city');
  5.             searchDialog.find('input').val(value);
  6.         }
  7.         });

Regards,

Rumen

Trirand Inc

Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller

http://www.trirand.net

24/11/2009
09:29
Avatar
novogeek
Hyderabad, Andhra Pradesh
Member
Members
Forum Posts: 10
Member Since:
02/07/2009
sp_UserOfflineSmall Offline

Yup!

Coding has no language barriers 🙂 Thank you for the quick help! Will try this and get back to you 🙂

Regards,

Krishna.

http://www.novogeek.com

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information