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_TopicIcon
jqGrid and Prototype
10/08/2010
20:32
Avatar
fridiii
Brazil
Member
Members
Forum Posts: 6
Member Since:
10/08/2010
sp_UserOfflineSmall Offline

I am using prototype.js in my application. When I click the Reset button on the search form, jqGrid stops working. If I remove the prototype.js, it works. I am using jqGrid 3.8 Beta... thanks...

10/08/2010
21:19
Avatar
fridiii
Brazil
Member
Members
Forum Posts: 6
Member Since:
10/08/2010
sp_UserOfflineSmall Offline

This error occurs on this line:

data: $.isFunction(ts.p.serializeGridData)? ts.p.serializeGridData.call(ts,ts.p.postData) : ts.p.postData,

in grid.base.js

10/08/2010
22:05
Avatar
fridiii
Brazil
Member
Members
Forum Posts: 6
Member Since:
10/08/2010
sp_UserOfflineSmall Offline

This line:

grid = $("#"+$t.p.id), sdata=[];

in resetFilters(op) function in grid.formedit.js, should be:

grid = $("#"+$t.p.id), sdata={};

as in searchFilters(filters) function.

Now the search works ok with prototype.js

19/08/2010
17:46
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. Fixed.

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.

31/08/2010
11:31
Avatar
Jonatan González
Member
Members
Forum Posts: 4
Member Since:
13/08/2010
sp_UserOfflineSmall Offline

Thanks fridiii!! 

I was having the same problem and I´ve already solved it.

But I was using minified version of jqGrid  3.6.4 wich can be easily modified in line 196 column 235:

var v=a("#"+w.p.id),B=[]    =>    var v=a("#"+w.p.id),B={}

In versión 3.7.2 (of minified version of jqGrid) the change is in line 226 column 258:

grid=a("#"+z.p.id);sdata=[]  => grid=a("#"+z.p.id);sdata={}


Regards

makius82


31/08/2010
15:00
Avatar
Jonatan González
Member
Members
Forum Posts: 4
Member Since:
13/08/2010
sp_UserOfflineSmall Offline

Hi guys!!

I have found another bug. With de minified  version of jqGrid 3.7.2 (under IE6) you have to declare grid variable or it will crash when the reset or close(X) button is pressed:

The change is in line 226 column 258: grid=a("#"+z.p.id);sdata={}  =>  var grid=a("#"+z.p.id);sdata={}

Regards

makius82

31/08/2010
15:17
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

I agree with makius82 (Jonatan González).

I find that in the grid.formedit.js inside of resetFilters(op) function either the line

    grid=a("#"+z.p.id);sdata={}

should be replaced to

  var grid=a("#"+z.p.id);sdata={}

or like in searchFilters(filters) function the previous line should be ended not with ';', but with ',' instead.

In any way the variable grid must be local and not global.

Regards
Oleg

02/09/2010
10:59
Avatar
Jonatan González
Member
Members
Forum Posts: 4
Member Since:
13/08/2010
sp_UserOfflineSmall Offline

Hello again,

I´m having troubles again with the filters.

I want to use "multipleSearch" but when I add another filter pushin "+" button and do something else (push "-" or "reset") I get a javascript console error because I'm using map.js wich has the declaration: "Array.prototype.removeAt = removeAt;".

There must be another error on the code that I cant find, if anybody can help me...

Thanks

Jonatan González

02/09/2010
14:54
Avatar
fridiii
Brazil
Member
Members
Forum Posts: 6
Member Since:
10/08/2010
sp_UserOfflineSmall Offline

Jonatan González,

I have the same problem using "multipleSearch" with jQuery and Prototype pushin "+" and then "-" or "Reset" button

When I remove Prototype.js, "multipleSearch" works normally…

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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