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
Search bug
19/08/2014
13:32
Avatar
jplevene
London
Member
Members
Forum Posts: 13
Member Since:
08/11/2012
sp_UserOfflineSmall Offline

If I have a search on a column, lets say of names, the user enters lets say "Andy" in the search inpu, the tree is populated (all well and good).

However, the user then deletes the word "Andy" so that the input is blank but does not press enter.

There are a few ways of showing this:

  • For the webpage we have, we have categories that apply extra filtering, when one of these filters is clicked, the grid calls the PHP routine with the filter and still passes the filter word "Andy", even though the search input is blank.
  • If the grid is refreshed using $('#grid').trigger('reloadGrid'), even though the search input is blank, it still applies the previous "Andy" filter.
  • If the user trims the search from "Andy" to "And", again does not press [ENTER], instead he refreshes the grid or in our case selects a category filter, JQGrid still passes the search as "Andy" and not "And" which is what is in the search input.

I know that to apply or clear a filter you must press [ENTER] and once the user deleted all of the characters in the search input, he should press [ENTER], but we are talking users and their sometimes inability to follow instructions.

I have found with programming and userbility the best thing to do is always account for user stupidity as a scenario like this they would class as a bug and throw it back in our faces.

20/08/2014
13:22
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

 

I do not think that this is a bug, as described in the title of the topic, but rather this is a expected behaviour.

Which search module is used - toolbar search or dialog search.

If you use toolbar search you can disable searchonEnter and do the desired behaviour.

For form search this instead is not available.

 

Please look at the options in toolbar searching in the docs here.

 

Regards

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
47 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