Forum
13:00
10/08/2009
Hi Tony!
I place the topic in "Bugs" part of forum only to make you easy to find it. I read in forum wisches to implement case insensitive searching for local data and find that it can be very easy implemented in jqGrid. I suggest following changes for grid.base.js:
1) include additional option ignoreCase: false in the line 687 (after groupingView option)
2) After the line 1364: query = $.jgrid.from(ts.p.data); insert the line
if (ts.p.ignoreCase) { query = query.ignoreCase(); }
It's all. You can see demo after the changes under http://www.ok-soft-gmbh.com/jq.....ilter3.htm. I use in the demo filterToolbar with the new option {defaultSearch : "cn"}.
Best regards
Oleg
13:40
Moderators
30/10/2007
Oleg,
Thanks again. Too many options into the grid, but instead I will include this.
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.
21:51
16/09/2010
Thanks for adding these 2 options, I was also looking for them. I'm using Oleg's updates and found a small bug. If the column is a date type, the toLowerCase calls in the compare function fail. These calls are on lines 265 & 266 of Oleg's grid.base-new.js file. I think a toString call is all that is needed to fix it, chaning lines 265 & 266 to following fixed the issue for me.
a=a.toString().toLowerCase();
b=b.toString().toLowerCase();
Thanks for putting out an excellent plugin.
Chad
21:15
29/06/2010
OlegK said:
Hi Tony!
I place the topic in "Bugs" part of forum only to make you easy to find it. I read in forum wisches to implement case insensitive searching for local data and find that it can be very easy implemented in jqGrid. I suggest following changes for grid.base.js:
1) include additional option ignoreCase: false in the line 687 (after groupingView option)
2) After the line 1364: query = $.jgrid.from(ts.p.data); insert the line
if (ts.p.ignoreCase) { query = query.ignoreCase(); }
It's all. You can see demo after the changes under http://www.ok-soft-gmbh.com/jq.....ilter3.htm. I use in the demo filterToolbar with the new option {defaultSearch : "cn"}.
Best regards
Oleg
While this now allows case insensitive searching for data that "cn" it does NOT work from beginning of text
If I have
Abdo
abdo
And I type 'abdo' it will find the second, but not the first.
mse
21:19
29/06/2010
mikeerickson said:
OlegK said:
Hi Tony!
I place the topic in "Bugs" part of forum only to make you easy to find it. I read in forum wisches to implement case insensitive searching for local data and find that it can be very easy implemented in jqGrid. I suggest following changes for grid.base.js:
1) include additional option ignoreCase: false in the line 687 (after groupingView option)
2) After the line 1364: query = $.jgrid.from(ts.p.data); insert the line
if (ts.p.ignoreCase) { query = query.ignoreCase(); }
It's all. You can see demo after the changes under http://www.ok-soft-gmbh.com/jq.....ilter3.htm. I use in the demo filterToolbar with the new option {defaultSearch : "cn"}.
Best regards
Oleg
While this now allows case insensitive searching for data that "cn" it does NOT work from beginning of text
If I have
Abdo
abdo
And I type 'abdo' it will find the second, but not the first.
Well, I guess it does work (it would help if I pasted the code at the right place). Sorry for the noise
mse
mse
Most Users Ever Online: 715
Currently Online:
28 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