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
setCell calls cell formatter function with wrong parameter
03/07/2014
18:20
Avatar
wydok
New Member
Members
Forum Posts: 2
Member Since:
03/07/2014
sp_UserOfflineSmall Offline

I am seeing this in 4.5.4, but it also appears to be an issue in 4.6.

The fourth parameter for a cell's formatter function is supposed to be an object of the row's data.  However, when called from the setCell fuinction, the fourth parameter is the row element for the row of the cell being edited.

Starting with line 3570, the ind variable set set to the rest of getGridRowById.  that variable is then passed as the fourth parameter.

var ind = $($t).jqGrid('getGridRowById', rowid); 
if (ind){
    var tcell = $("td:eq("+pos+")",ind);
    if(nData !== "" || forceupd === true) {
        v = $t.formatter(rowid, nData, po
03/07/2014
18:22
Avatar
wydok
New Member
Members
Forum Posts: 2
Member Since:
03/07/2014
sp_UserOfflineSmall Offline

Sounds like this bug from three years ago is the same issue:

http://www.trirand.com/blog/?p.....ata-object

08/07/2014
12:55
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks
I confirm this. I will try to loop thought
ind.cells
and build a array with the raw data.
Will let you know.

Regards

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.

08/07/2014
13:18
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

I have fixed the problem in GitHub here.

This fix slow down the method when used multiple time in loop or in other ways.

Regards

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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