Forum
13:32
08/11/2012
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.
13:22
Moderators
30/10/2007
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.
Most Users Ever Online: 715
Currently Online:
64 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