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
JQGrid Multi Search on Tool bar causes grid to hang
06/02/2011
02:20
Avatar
jayedisonhome
Member
Members
Forum Posts: 3
Member Since:
15/02/2010
sp_UserOfflineSmall Offline

This defect is with the JQGrid Multiple Search Feature.

The JQGrid hangs when the you put spaces in the search field and click the find button. I think we should have a trim function in JQGrid to prevent. this.

If you need a screen shot I can email it.

06/02/2011
09:55
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

We can not reproduce the problem provided from you. We do not need screenshot, but real example.

You can simple go into the demo page select new in version 3.7 and then select Multiple search item - it is the same case.

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.

06/02/2011
18:21
Avatar
jayedisonhome
Member
Members
Forum Posts: 3
Member Since:
15/02/2010
sp_UserOfflineSmall Offline

I can reproduce this bug easily everytime in the demo page. I did exactly as you said.

Went to demo page, clicked New in Version 3.7, clicked Multiple search, clicked the search icon in the bottom tool bar, this pops up the search form, entered 3 spaces on the right search box and clicked find. The grid shows loading and hangs forever.....after that you can't do anything on the grid , no button works.

Please let me know if you need more information.

06/02/2011
21:27
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

Hello jayedisonhome,

I can also reproduce the problem in Chrome or Internet Explorer. The problem exist if one try to search for the strings with blanks in the column of the type sorttype:'int'. The error will be in the line 394 of grid.base.js. It will be tried to make eval for

(parseInt(this.item_id,10) == parseInt(   ,10))

which has syntax error. The origin for the problem is in the lines 473-475:

val = isNaN(Number(val)) ? '0' : val; // To be fixed with more inteligent code
fld = 'parseInt('+fld+',10)';
val = 'parseInt('+val+',10)';

One cen fix the lines to 

val = isNaN(Number(val)) ? '0' : val; // To be fixed with more inteligent code
fld = 'parseInt('+fld+',10)';
val = 'parseInt('+Number(val)+',10)';

The same changes should be done in the line 483.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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