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_Related Related Topics sp_TopicIcon
case insensitive local searching
06/09/2010
13:00
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

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

11/09/2010
13:40
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

16/09/2010
21:51
Avatar
Chad LaVigne
United States
New Member
Members
Forum Posts: 2
Member Since:
16/09/2010
sp_UserOfflineSmall Offline

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

22/09/2010
21:15
Avatar
mikeerickson
Huntington Beach, CA
Member
Members
Forum Posts: 34
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

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

22/09/2010
21:19
Avatar
mikeerickson
Huntington Beach, CA
Member
Members
Forum Posts: 34
Member Since:
29/06/2010
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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