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
INSENSITIVE case search solution for 3.7.2
08/09/2010
15:46
Avatar
yannick
france
New Member
Members
Forum Posts: 2
Member Since:
08/09/2010
sp_UserOfflineSmall Offline

Posting that coz took me quite a while to figure where to put my code in the compiled version.

Some of ya asked, some like me cant wait 3.8 (my release is by wenesday... so had to make it work)

Here is an easy fix.

in jquery.jqGrid.min.js

Change line 26 or add red text :

L?c._append(c._getStr("this."+l)+".substr("+c._getStr("this."+l)+".length-"+o+","+o+') == "'+c._toStr(m)+'"'):c._append(c._getStr("this")+".substr("+c._getStr("this")+'.length-"'+c._toStr(l)+'".length,"'+c._toStr(l)+'".length) == "'+c._toStr(l)+'"');c._setCommand(c.endsWith,l);c._resetNegate();return c};this.contains=function(l,m){L?c._append(c._getStr("this."+l)+'.toLowerCase().indexOf("'+c._toStr(m).toLowerCase()+'",0) > -1'):c._append(c._getStr("this")+'.indexOf("'+c._toStr(l)+'",0) > -1');c._setCommand(c.contains,l);c._resetNegate();

As a reminder to switch to contain by default =>

in jquery.jqGrid.min.js

in line 228

this.searchoptions.sopt[0]:"bw"

should be changed to :

this.searchoptions.sopt[0]:"cn"

(or any other u want to list is a bit before take a look)

08/09/2010
16:02
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Look at my suggestion from /blog/?page_id=393/bugs/case-insensitive-local-searching/ and my answer /blog/?page_id=393/help/toolbar-search-case-insensitive/ with the demo http://www.ok-soft-gmbh.com/jq.....ilter3.htm.

Is it not what you want?

You can of case make the same changes in the source code of 3.7.2 and create a minimized version of 3.7.2 yourself with respect of YUI Compressor or other minimizer.

Best regards
Oleg 

08/09/2010
16:47
Avatar
yannick
france
New Member
Members
Forum Posts: 2
Member Since:
08/09/2010
sp_UserOfflineSmall Offline

It's almost oleg Laugh

In fact you helped me solve it but ur solution wont work in this case,

I dont want to have my equal or any other search replace,

so i modified the contains function adequatly.

Btw if someone find it usefull, use it, if not ... well ....

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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