Forum
13:05
Moderators
30/10/2007
Hello,
Thanks, since the local search is relative new feature we will see how to add this in the future releses.
Best Regards
Tony
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.
Tony, I think this should be determined by the server-side code. If we start adding too many options to jqGrid it is going to become too large and performance will become increasingly hard to tune from your end. I cannot see a situation where a user should decide whether or not a search option should be case sensitive or not, for example address, name, etc should always be case insensitive due to the nature of the Internet today, most folks texting today do not care about case. Anyway, doubleforte, not saying your request has no value but we need to always keep in mind we all use this GREAT plugin and want to keep it lean and mean
doubleforte, how much data are you trying to search through client-side; i.e. how many rows and how does the client-side search/filter affect performance of having to load all data? I'm just curious as I always hit the database for every request as a rule because it is hard to say how a list may grow in size over time and I'm not sure doing client-side filtering outweights the performance hit of loading all the data?
22:46
11/08/2010
I am curious about any information about customizing toolbar search. Currently I need to have case insensitive search, as it is mostly default mode whatever you search on the internet. Second one is to modify from "begins with" to "contains" .
I am also using local mode, and I find it very usable. Currently I am having grids with 6000 records, and users preferred little longer loading and quicker data access/search. I think that bandwidth is getting cheaper than ping, making round-trip to server more time consuming overall... But it really depends of use case...
Just wanted to give my support for this feature request... In meanwhile I'll have to make workaround and code it by myself 🙁
11:04
06/09/2010
Anyone manage to find a workaround for this? I've managed to change the search options from begins with to contains (by changing "bw" to "cn" in Grid.Custom.js source line 536).
var so = (this.searchoptions && this.searchoptions.sopt) ? this.searchoptions.sopt[0] : "cn";
I've been fiddling with the case statement around line 550, seems that var v is the string thats been input to search on. I can successfully get v.toLowerCase() but can't figure out what it compares it to so that I can also convert the column data to lower case for the compare.
case 'text':
v = $(
"input[name="+nm+"]",$t.grid.hDiv).val();
if(v) {
sdata[nm] = v;
sopt[nm] = so;
j++;
}
else {
try {
delete $t.p.postData[nm];
}
catch (e) {}
}
break;
Anyone have any ideas?
Thanks,
Neil
13:06
10/08/2009
Hi!
New 3.8 version of jqGrid which will be soon released has additional defaultSearch option. So you can use filterToolbar ({defaultSearch : "cn"}); for filtering to "contains" instead of default "begins with".
Moreover after reading of your post I suggested very small changes in the code of jqGrid which I just posted in /blog/?page_id=393/bugs/case-insensitive-local-searching/#p19541. After this changes one will be able use new jqGrid option ignoreCase: true. The results you could see in the demo http://www.ok-soft-gmbh.com/jq.....ilter3.htm.
Is it want you wanted?
I hope Tony will include my suggestion in the release of 3.8.
Bests regards
Oleg
Most Users Ever Online: 715
Currently Online:
68 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